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

Dashboard
Notifications
Mark all as read
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?

+4
−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?

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

3 comments

I could have sworn that we had C highlighting at least, since this question (https://software.codidact.com/questions/277486) uses it Moshi‭ 6 months ago

I give up, the damn thing is probably just not enabled on Meta for some reason. Moshi‭ 6 months ago

@Moshi syntax highlighting is only enabled for communities where we expect code, because (like Mathjax) it adds some rendering time to every post and we don't want to slow down sites that wouldn't benefit. Sorry about your edge case; it's certainly reasonable to ask on Meta about the syntax highlighter, since it's a general (configurable) tool, but unfortunately you can't demonstrate it here. Monica Cellio‭ 6 months ago

1 answer

+2
−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.

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

2 comments

Please make sure that it is enabled on the metas for the tech sites though. There will occasionally be a need to bring up the technical content of posts on meta. Lundin‭ 6 months ago

@Lundi those settings are shared between all categories, so all per-community metas have them too if the other categories have them. luap42 😷‭ 6 months ago

Sign up to answer this question »

This community is part of the Codidact network. We have other communities too — take a look!

You can also join us in chat!

Want to advertise this community? Use our templates!