News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

PrismJS for SMF

Started by Bugo, August 03, 2023, 09:20:17 PM

Previous topic - Next topic

Bugo

Link to the mod

This script highlights syntax in the code blocks on SMF forums.

  • It is necessary to specify the language used:

    [code=html]<h1>Hello world</h1>[/code]

    .
  • You can specify the default language in settings and then short syntax will be available:

    [code]echo 'How are you?';[/code]

  • The theme style can be changed (8 styles).
  • 260 supported languages.

This mod uses PrismJS script of Lea Verou and contributors.

Available translations:
  • English
  • Russian
  • French
  • Spanish


mickjav

Thanks for this, been looking for something like it for my Code Library, It even does VBA  ;D

All the best mick


the Librarian is on Its way, due late 25 - early 2026

gevv

I like PrismJS. Coloring is better. Thanks @Bugo
ElkArte is a modern, powerful community building forum software. https://www.elkarte.net/

Advertisement: