or
Caleb
Most Markdown code block syntax highlighters have pretty good support for TeX based languages out of the box. I think it's reasonable to assume blocks otherwise unmarked on this site are going to be tex.

Source:

~~~markdown

\textbf{bob}

~~~

Output:


\textbf{bob}


Of course setting the language should also work:

Source:

~~~markdown
tex
\textbf{bob}

~~~

Output:

tex
\textbf{bob}


Right not it appears the language is just not recognized.
Jack Douglas
We've added TeX to our highlightjs highlighting library  as it [isn't in the list](https://highlightjs.org/download/) for a default download.

We've also made tex the default language for this community but please bear in mind that is you want unformatted code blocks you now need to declare that explicitly, so:

~~~none

\textbf{bob}

~~~

produces:


\textbf{bob}


and:

~~~none
none
\textbf{bob}

~~~

produces:

none
\textbf{bob}


How can we enable TeX syntax highlighting as the default?
Caleb
...and I dislike it using **bold** so aggressively for all commands. I prefer subtle color based highlighting not having my code thrown  in my face ;-)
Caleb
Ya that needs some help. I maybe _could_ do it, but don't really have the time and won't for a while. I'm sure somebody will dig in eventually. It's better than nothing though, just a bit rudimentary.
Jack Douglas
I guess that might also make a good meta question…
not sure how easy that would be to fix, but this is the place to do it if you have the skills: https://github.com/highlightjs/highlight.js/blob/master/src/languages/tex.js
At least the _idea_ is good. The actual syntax support level seems to be pretty terrible, but that's another issue.
@Jack Awesome, that sounds reasonable.