[3.3][ALPHA] Prism JS syntax highlighter ⚡️

A place for Extension Authors to post and receive feedback on Extensions still in development. No Extensions within this forum should be used within a live environment!
Scam Warning
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: Extensions Development rules

IMPORTANT FOR NEEDED EVENTS!!!
If you need an event for your extension please read this for the steps to follow to request the event(s)
Post Reply
User avatar
3Di
Former Team Member
Posts: 15668
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

[3.3][ALPHA] Prism JS syntax highlighter ⚡️

Post by 3Di »

✍️ Prism JS syntax highlighter ⚡️

             » phpBB Studio
                      :label: 1.0.0
                       :tools:        
                               phpBB >= 3.3.0


Description:
  • Adds syntax highlighting to code blocks using prism.js
  • Comes with a dark theme
  • Adds a copy-to-clipboard button
  • Adds a visual name reference for the highlighted language
  • List of all 221 languages currently supported by Prism languages
:inbox_tray: Download: https://phpbbstudio.com/extensions/pris ... ighlighter

:bookmark_tabs: Repository: https://github.com/phpBB-Studio/PrismSyntaxHighlighter

:bookmark_tabs: BugTracker: https://github.com/phpBB-Studio/PrismSy ... new/choose

Credits:
This extension borrowed some code from the s9e/highlighter which has been developed by JoshyPHP.
There was not really the need to re-invent the wheel, thanks. 👍
Last edited by 3Di on Mon Jun 29, 2020 11:52 pm, edited 3 times in total.
Please PM me only to request paid works. Thx.
Want to compensate me for my interest? Donate
My development's activity º PhpStorm's proud user
Extensions, Scripts, MOD porting, Update/Upgrades
:studio_microphone: Looking for a specific feature or alternative option?
User avatar
3Di
Former Team Member
Posts: 15668
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

Re: [3.3][DEV] Prism JS syntax highlighter ⚡️

Post by 3Di »

Image
Please PM me only to request paid works. Thx.
Want to compensate me for my interest? Donate
My development's activity º PhpStorm's proud user
Extensions, Scripts, MOD porting, Update/Upgrades
:studio_microphone: Looking for a specific feature or alternative option?
User avatar
3Di
Former Team Member
Posts: 15668
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

Re: [3.3][DEV] Prism JS syntax highlighter ⚡️

Post by 3Di »

Usage :idea:

[code=php][/code]

[code=twig][/code]

[code=css][/code]

Etc, see the list in the first post.

No language declared means feature disabled. ;)
Last edited by 3Di on Mon Jun 29, 2020 11:56 pm, edited 1 time in total.
Please PM me only to request paid works. Thx.
Want to compensate me for my interest? Donate
My development's activity º PhpStorm's proud user
Extensions, Scripts, MOD porting, Update/Upgrades
:studio_microphone: Looking for a specific feature or alternative option?
User avatar
Meis2M
Translator
Posts: 914
Joined: Wed Mar 03, 2010 11:32 am
Location: IR.Damghan
Name: میثم نوبری
Contact:

Re: [3.3][DEV] Prism JS syntax highlighter ⚡️

Post by Meis2M »

lovely extension but a question, possible to have line number?
phpBB persian international support
Follow us in Instagram
Free upgrade and install extensions on your forum - drop me PM
Ultimate phpBB SEO Friendly URL extension
User avatar
3Di
Former Team Member
Posts: 15668
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

Re: [3.3][DEV] Prism JS syntax highlighter ⚡️

Post by 3Di »

Meis2M wrote:
Mon Jun 29, 2020 6:11 am
... possible to have line number?
I'm not sure I want to do this, the more I think about it, the more I realize it would be a useless option in a code block. Besides when you do one thing there's always someone who wants another or doesn't want that, to write a lot of options I don't think that's what I want, which is to waste precious time.

I just wrote it out of boredom and more as proof of concept.

The first version will be minimalistic, then we will see.
Please PM me only to request paid works. Thx.
Want to compensate me for my interest? Donate
My development's activity º PhpStorm's proud user
Extensions, Scripts, MOD porting, Update/Upgrades
:studio_microphone: Looking for a specific feature or alternative option?
User avatar
3Di
Former Team Member
Posts: 15668
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

Re: [3.3][ALPHA] Prism JS syntax highlighter ⚡️

Post by 3Di »

First public release, see first post.
Please PM me only to request paid works. Thx.
Want to compensate me for my interest? Donate
My development's activity º PhpStorm's proud user
Extensions, Scripts, MOD porting, Update/Upgrades
:studio_microphone: Looking for a specific feature or alternative option?
Post Reply

Return to “Extensions in Development”