Le lundi 11 mai 2020 14:59:56 UTC+2, Edgaras a écrit :
>
> Hey! I am using Prism.js for code highlighting, but I can't make it work.
>
> The problem is that I use ``` markup around the code, that spits out
> <pre><code> around the code. But I also need to include <pre><code
> class="language-html"> (or other languages depending on a situation).
>
> Is there a way to specify extra attributes like classes to ```?
>
> Thank you in advance!
>
In TW we use highlight.js, and you can specify language by adding after
```, for example :
```css
* { margin: 0; padding: 0; } /* micro reset */
html { font-size: 62.5%; }
body { font-size: 14px; font-size: 1.4rem; } /* =14px */
h1 { font-size: 24px; font-size: 2.4rem; } /* =24px */
```
See https://tiddlywiki.com/plugins/tiddlywiki/highlight/
And you can use css stylesheet to colorize the output.
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/e4f5bbda-22a9-4064-b590-ac399383f189%40googlegroups.com.