Skip to main content
2 of 5
Not really a markdown issue, but a code highlighting/formatting issue.
Thomas Ward Mod
  • 77.1k
  • 2
  • 58
  • 114

Syntax highlighting doesn’t work on meta

When I enter

<!-- language-all: lang-bash -->

    if :; then echo "quoted"; fi

in a post on main, the output looks like this:

example for proper syntax highlighting on main

Here on meta, the very same code gets no syntax highlighting at all:

if :; then echo "quoted"; fi

I already tried every possible combination from language: bash to said language-all: lang-bash without any avail. As the last paragraphs in this post by Eliah Kagan shows, I’m not the only one who is bothered by this – I think we all agree syntax highlighting is very useful.

Could you shed some light on whether that’s actually a bug or rather ?
If it’s the latter:

  • What are the precise reasons this decision was made?
  • Can we have a discussion on that?
dessert
  • 40.7k
  • 17
  • 36