Dave Rahardja · @drahardja
1229 followers · 5684 posts · Server sfba.social

What’s the deal with just…getting stuck highlighting some random block of code in the middle of your page? I have a code block marked `swift` featuring a `class` definition that will not highlight properly. But if I add a statement before the class definition, e.g. `a = b + 5`, the syntax highlighting works again. What am I doing wrong?

I’m using the minimized bundle from their CDN, so I should have the latest version.

#highlightjs #jekyllrb #staticpages #SyntaxHighlighting #blogging

Last updated 1 year ago

pandoc · @pandoc
1241 followers · 152 posts · Server fosstodon.org

ships with 8 syntax styles: pygments (the default), tango, espresso, zenburn, kate, monochrome, breezedark, and haddock. Set `--highlight-style` to once of these values to vary code coloring etc.
Not enough? Pandoc can also use highlighting themes. There's a list at kate-editor.org/themes/, theme files are available from github.com/KDE/syntax-highligh. Pass the downloaded file as highlight style.

#pandoc #highlighting #kde #SyntaxHighlighting #theme

Last updated 2 years ago

Akib Azmain Turja · @akib
95 followers · 772 posts · Server hostux.social
ar.al🌻 · @aral
25022 followers · 19526 posts · Server mastodon.ar.al

If you’re using the Dracula theme (draculatheme.com/) in Helix Editor (helix-editor.com), here’s a tiny patch that will improve selections for you by maintaining syntax highlighting in selected areas:

github.com/helix-editor/helix/

#SyntaxHighlighting #usability #legibility #theme #dracula #hx #HelixEditor

Last updated 2 years ago