Linked Questions

317 votes
38 answers
58k 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 ...
Ben Kelly's user avatar
  • 5,407
624 votes
1 answer
131k 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 ...
91 votes
2 answers
2k views

Stop guessing/auto-detecting a language when you KNOW it will be incorrect

The problem: SE asks Highlight.js to autodetect the language when it knows there isn’t any optimal/correct choice for us to make - resulting in very poor outcomes. Disclaimer: I say this as the ...
Josh Goebel's user avatar
  • 1,609
9 votes
2 answers
4k views

What is the better highlighting language for HTTP Apache conf?

I'm looking for the best way to highlight Apache HTTP configuration : Here an example with lang-xml, which really does not satisfy me: <VirtualHost *:80> ServerName myapp-homintranet.myorg....
Jean-Rémy Revy's user avatar
35 votes
1 answer
548 views

Can Stack Overflow please upgrade to a version of highlight.js that supports PowerShell syntax highlighting?

This question is not a duplicate of: Enable a "lang-powershell" option for Prettify on Stack Overflow Please add support for PowerShell syntax highlighting They are from a time when Stack ...
TessellatingHeckler's user avatar
38 votes
0 answers
293 views

Please deploy Fortran syntax highlighting

Fortran is supported by highlight.js. There are several Fortran questions at Stack overflow every day. Please enable Fortran syntax highlighting.
Vladimir F Героям слава's user avatar
6 votes
1 answer
151 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 ...
Friedrich's user avatar
  • 163
7 votes
0 answers
198 views

Java properties file syntax highlighting

Many Java-related questions have code blocks in Java properties file format. Right now, in order to ensure they're not improperly highlighted as Java code, the plain text lang-none language code can ...
M. Justin's user avatar
  • 1,146
11 votes
0 answers
145 views

Support Prolog in syntax highlighting

As listed here, Prolog is not currently supported by Stack Exchange but it is supported by the underlying library highlight.js.
bmitc's user avatar
  • 211
10 votes
0 answers
150 views

Groovy syntax highlighting

According to the list of supported languages for syntax highlighting, Groovy has been missing for many years, despite the fact that highlight.js supports Groovy and Groovy is not a particularly exotic ...
kriegaex's user avatar
  • 571
3 votes
0 answers
226 views

Add syntax highlighting support for Solidity

Recently, I have been active a lot on the Ethereum site. It got a recent design overhaul which shows that some progression is happening. Unfortunately, one of the main issues is that the Solidity code ...
Throvn's user avatar
  • 131