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.

What languages have syntax highlighting support?

+8
−0

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?

History
Why does this post require moderator attention?
You might want to add some details to your flag.
Why should this post be closed?

1 comment thread

General comments (3 comments)

1 answer

+6
−0

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.

History
Why does this post require moderator attention?
You might want to add some details to your flag.

1 comment thread

General comments (2 comments)

Sign up to answer this question »