I have produced a new highlighter plugin, https://prismjs.tiddlyhost.com
Tiddlyprism is a smaller alternative highlighter to the official highlighterjs plugin, and supports highlighting of tiddlywiki text.
I have produced a new highlighter plugin, https://prismjs.tiddlyhost.com
Tiddlyprism is a smaller alternative highlighter to the official highlighterjs plugin, and supports highlighting of tiddlywiki text.
<$codeblock code={{{ [<currentTiddler>get[text]] }}} language="swift"/>
Previously I used to use the above mentioned code in a viewtemplate to display the tiddler text when the highlighterjs plugin is installed. Is something similar possible with Tiddlyprism?
Also can this highlight the wikitext in system tiddlers ?
How codeblocks works should not vary between the different highlighters, so that should work.
The highlight of system tiddlers would be to be controlled by templates - similar to the css case in this pull request
Actually what I wanted to know was whether there is some widget similar to codeblock widget in tiddlyprism which can be used similar to the code given above
tiddlyprism has no widgets it extends the codeblock widget.