How to highlight code block within highlight.js?

23 views
Skip to first unread message

Holmes Donalds

unread,
Aug 27, 2020, 7:45:51 AM8/27/20
to TiddlyWikiDev
In TW 5.1.21, I'm using highlight.js to embed code snippets with the ``` tags. If I want to highlight a piece of code in my notes, for e.g. a piece of error code (in red) how do I do this? I've previously used it within the <pre> tags as

<pre>`line1
`@@color:red;code to be highlighted@@`
`</pre>

Is there an alternative or much neater way to do this?
Reply all
Reply to author
Forward
0 new messages