Skip to main content

For questions about the syntax highlighting performed inside code blocks on Stack Exchange sites.

Stack Exchange uses highlight.js, a JavaScript library, for syntax highlighting of code blocks across the network.

Improvements to the highlighting for any specific language are most readily obtained by submitting issues or pull requests to highlight.js's GitHub project. New versions of highlight.js are deployed across the network on a regular basis, so once the updates are accepted to the project, they should be reflected on Stack Exchange after some time.

Improvements to the way Stack Exchange sites integrate highlight.js should be requested here on Meta Stack Exchange and given the tags and / .

For a complete list of languages supported on Stack Exchange and comprehensive instructions on how to use syntax highlighting, see What is syntax highlighting and how does it work?.

For a list of which Stack Exchange sites currently support syntax highlighting in posts, see Which Stack Exchange sites have syntax highlighting enabled?

Related Tags:

Related Links: