Codeblock Syntax Highlighting support for more languages

Codeblock syntax highlighting is supported by CodeMirror mode. According to its website, it supports tons of languages. But from the source code of Logseq, it only used a few of those modes. So is it possible to get syntax highlighting for more languages (would be better for all those languages listed in CodeMirror mode page)?

1 Like

Hi I totally agree, I would love to see logseq supports more language / format for example yaml, bash and many others!

Use Highlight.js for this feat, but yes I do agree.

How do you use highlight.js with the desktop app? Or are you using the browser version?

Update: Multiple new languages were added. Will be available in the next release!

All languages supported by CodeMirror 5.x has been added. Will move this to the archive. Please let me know if there is any missing languages you would like to see implemented.

1 Like