Linked Questions
10 questions linked to/from Stop guessing/auto-detecting a language when you KNOW it will be incorrect
318 votes
38 answers
61k views
Goodbye, Prettify. Hello highlight.js! Swapping out our Syntax Highlighter
Update 2020-09-24 This is now live network-wide. Update This is now live on Meta Stack Exchange and Meta Stack Overflow. Any bugs and feedback can be posted here as an answer. I’m Ben and I’m a dev ...
635 votes
1 answer
138k views
What is syntax highlighting and how does it work?
I noticed that sometimes my code gets highlighted in different colors when rendered. What is syntax highlighting? How does it work? Why isn't my code being highlighted correctly? How do I report a bug ...
46 votes
29 answers
11k views
Community Asks Sprint Announcement - March 2025
Update - April 21, 2025 The results of the March 2025 Community Asks Sprint have been posted here! Update - April 3, 2025 Last week, we completed our Community Asks Sprint! There are still some ...
133 votes
2 answers
4k views
Julia syntax highlighting
Since the syntax highlighter is now highlight.js it would be great to finally get some syntax highlighting for Julia code on Stack Overflow and other sites that might need this tag. Julia is one of ...
27 votes
2 answers
629 views
Syntax highlighting when using a `lang-*` alias (and some "main" language codes) is broken
As cocomac points out in the comments, this specific instance of the issue may be explained by this; so the example below, that showcases the bug for lang-vim, is an unfortunate one. However: The ...
16 votes
2 answers
831 views
What happened to Groovy syntax highlighting?
On Stack Overflow I have answered many questions about Spock and Geb, two Groovy test frameworks. For years, I have used <!-- language: lang-groovy --> in combination with indentation by four ...
7 votes
1 answer
324 views
Markdown characters in code both shown and rendered as markdown
With certain syntax colourings active (for example "apl" but not "c"), and for certain specific characters, symbols that have meaning in markdown are visible while also causing ...
4 votes
1 answer
211 views
Some lines of code block are bold when the question has at least two language tags
We've found this problem in this question on Stack Overflow in Portuguese, but I've also tested in other sites (English and Spanish SO's), and it happened there as well. In the aforementioned ...
6 votes
1 answer
260 views
Syntax highlighting for Vimscript
A moderator on Vi & Vim SE recently announced syntax highlighting for lang-vimscript (seems to be synonymous to lang-vim) to be working: It looks like lang-vimscript is supported for code ...
6 votes
1 answer
185 views
Syntax highlighting works in the preview only, not in the rendered post
I have manually specified the lang-cmake syntax highlighting for the code blocks in my question: How to instruct the CMake to use a specific CMAKE_GENERATOR_TOOLSET? The syntax highligting works ...