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

🆓
Adds syntax highlighting to code blocks using prism.js


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

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

Post by 3Di »

✍️ Prism JS syntax highlighter ⚡️

             » Important: previous installations must delete data in order to update!

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

Description:

  • Adds syntax highlighting to code blocks using prism.js

  • Comes with a serie of 8 themes to chose from in ACP

  • List of all 260 languages currently supported by Prism languages

  • Payload 62.41 KB (93% JavaScript + 7% CSS)

  • PHP 8 ready

  • phpBB 4 ready

Features:

  • Default languages

    • markup
      css
      clike
      javascript
      bash
      c
      cpp
      git
      markdown
      markup-templating
      nginx
      php
      powershell
      regex
      twig
      wiki
      yaml
      (automatically loads and cache missing languages)

  • Plugins

    • show-invisibles (Show spaces, CR LF, tabs etc)
      show-language (Display the highlighted language)
      autoloader (autoloads missing languages from local)
      copy-to-clipboard (self explanatory button)

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

: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.

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


User avatar
3Di
Founder
Founder
Posts: 1705
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: 1705
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: 1705
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: 1705
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. 🇮🇹


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

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

Post by 3Di »

New version RC 1.0.1 released, see first post for new details

v1.0.1-RC on on 01-Sep-2021

  • Reduce payload
  • Update library and themes to PrismJS 1.24.1

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


Locked