Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

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.

Post History

80%
+6 −0
Q&A What languages have syntax highlighting support?

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...

posted 4y ago by Monica Cellio‭  ·  edited 4y ago by Monica Cellio‭

Answer
#3: Post edited by user avatar Monica Cellio‭ · 2020-10-08T13:32:18Z (about 4 years ago)
respond to comments
  • Codidact uses [highlight.js](https://highlightjs.org/) 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](https://highlightjs.org/static/demo/) as well as on [a table on their GitHub](https://github.com/highlightjs/highlight.js/blob/master/SUPPORTED_LANGUAGES.md).
  • 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.
  • Codidact uses [highlight.js](https://highlightjs.org/) 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](https://highlightjs.org/static/demo/) as well as on [a table on their GitHub](https://github.com/highlightjs/highlight.js/blob/master/SUPPORTED_LANGUAGES.md).
  • 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.
#2: Post edited by user avatar Moshi‭ · 2020-10-08T03:53:40Z (about 4 years ago)
Added a reference to the highlight.js GitHub repository
  • Codidact uses [highlight.js](https://highlightjs.org/) 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](https://highlightjs.org/static/demo/) 189 languages.
  • 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.
  • Codidact uses [highlight.js](https://highlightjs.org/) 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](https://highlightjs.org/static/demo/) as well as on [a table on their GitHub](https://github.com/highlightjs/highlight.js/blob/master/SUPPORTED_LANGUAGES.md).
  • 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.
#1: Initial revision by user avatar Monica Cellio‭ · 2020-10-08T00:32:40Z (about 4 years ago)
Codidact uses [highlight.js](https://highlightjs.org/) 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](https://highlightjs.org/static/demo/) 189 languages.

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.