An alternative to highlight.js

82 views
Skip to first unread message

Atronoush

unread,
Mar 12, 2020, 3:49:37 AM3/12/20
to TiddlyWiki
The prism engine is a lightweight (2kB core + 0.3-0.5kB per language brush + 1kB per theme) syntax highlight JavaScript engine.


I would appreciate developers to see the possibility to have it as Tiddlywiki plugin.
The highlight.js plugin is around 110kB.



bimlas

unread,
Mar 17, 2020, 4:39:52 AM3/17/20
to TiddlyWiki
Altronoush


The prism engine is a lightweight (2kB core + 0.3-0.5kB per language brush + 1kB per theme) syntax highlight JavaScript engine.

Actually, the core of the Prism is so small, but with the various language syntaxes (mostly available in Highlight.js, see https://highlightjs.org/static/demo/), its size will be quite large.

Turn on the "Select / unselect all" checkbox and look at its size at the bottom of the page: https://prismjs.com/download.html#themes=prism&languages=markup+css+clike+javascript 

In any case, it is more advantageous than Highlight.js in that everyone can choose the languages they want, ignore the ones they don't use, thus reducing the size. 
Reply all
Reply to author
Forward
0 new messages