Welcome to Codidact Meta!
Codidact Meta is the meta-discussion site for the Codidact community network and the Codidact software. Whether you have bug reports or feature requests, support questions or rule discussions that touch the whole network – this is the site for you.
Comments on What languages have syntax highlighting support?
Parent
What languages have syntax highlighting support?
Users can specify the language of a code block by adding it after the first set of triple backticks. For example, this question over on Software Dev uses it for C.
What programming languages are supported by the syntax highlighter?
Post
Codidact uses highlight.js for syntax highlighting. We support whatever languages are enabled by default in that package; we haven't restricted them. As I write this, they list 189 languages with examples on their website as well as on a table on their GitHub.
Syntax highlighting is enabled for communities that request it, but not everywhere. (That's why your attempts to provide an example didn't work here on Meta.) We do this because, like Mathjax, syntax highlighting adds some rendering time to every post, and we don't want to slow down sites that wouldn't benefit.
When highlighting (or Mathjax) is enabled for a community, it's enabled for all categories, including meta.
1 comment thread