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

🆓
Adds syntax highlighting to code blocks using prism.js


Locked
User avatar
3Di
Founder
Founder
Posts: 1577
Joined: 12 Mar 2018 20:10
Location: Milan (IT) Frankfurt (DE)
Contact:

[3.3][RC] 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 serie of themes selectable in ACP

  • Adds a copy-to-clipboard button

  • Adds a visual name reference for the highlighted language

  • List of all 257 languages currently supported by Prism languages

:inbox_tray: Download: extensions/prism-js-syntax-highlighter

: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 11 May 2021 17:59, edited 2 times in total.
Reason: changed details to adhere to the current PrismJS version 1.23.0

🇪🇺 Honour and respect to all the Healthcare Heroes. 🇮🇹


User avatar
3Di
Founder
Founder
Posts: 1577
Joined: 12 Mar 2018 20:10
Location: Milan (IT) Frankfurt (DE)
Contact:

[3.3][A1] 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. ;)

🇪🇺 Honour and respect to all the Healthcare Heroes. 🇮🇹


User avatar
3Di
Founder
Founder
Posts: 1577
Joined: 12 Mar 2018 20:10
Location: Milan (IT) Frankfurt (DE)
Contact:

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

Post by 3Di »

Image

🇪🇺 Honour and respect to all the Healthcare Heroes. 🇮🇹


User avatar
3Di
Founder
Founder
Posts: 1577
Joined: 12 Mar 2018 20:10
Location: Milan (IT) Frankfurt (DE)
Contact:

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

Post by 3Di »

immagine.png

New version BETA 1.0.0 released, see first post.

v1.0.0-beta on 03-Aug-2020

  • Added Ajaxed ACP side of things
  • Added 7 CSS styles
  • Added custom CSS

🇪🇺 Honour and respect to all the Healthcare Heroes. 🇮🇹


User avatar
3Di
Founder
Founder
Posts: 1577
Joined: 12 Mar 2018 20:10
Location: Milan (IT) Frankfurt (DE)
Contact:

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

Post by 3Di »

New version RC 1.0.0 released, see first post.

v1.0.0-RC on 10-May-2021

  • Cumulative fixes
  • Update library and themes to PrismJS 1.23.0

🇪🇺 Honour and respect to all the Healthcare Heroes. 🇮🇹


Locked