Quantcast
Channel: Active questions tagged meta - Meta Stack Overflow
Viewing all articles
Browse latest Browse all 176

Syntax highlighting for JavaScript does not support template literals on Stack Overflow, but does on Meta

$
0
0

I just realized that syntax highlighting for is different on Meta Stack Overflow compared to Stack Overflow.

Meta:

enter image description here

Stack Overflow:

enter image description here

Ignoring the different colors, you can see that the template literals are being highlighted in the Meta example, but on the Stack Overflow example, they are being treated as normal code.

Why is this? Is there any reason as to why the syntax highlighting is different on one site than another?

Inspired by this question - Add support for template literals to the JavaScript syntax highlighter


Viewing all articles
Browse latest Browse all 176

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>