Skip to main content
Tweeted twitter.com/#!/ServerFault/status/162451382677417986
edited tags
Link
edited tags
Link
sysadmin1138 Mod
  • 135.3k
  • 6
  • 48
  • 90
Source Link

Syntax highlighting based on tag

Right now the code blocks on SF don't support syntax highlighting. Instead we get boring, grey, hard to read code.

I spent some time today on the Unix & Linux SE, which does offer syntax highlighting. It does so based on the assumption that any code in blocks is probably in some sort of shell language like bash.

Could we have a similar system on SF that uses the tags to form assumptions?

E.g. if a question is tagged PowerShell, the code blocks in the question and answers will probably contain PowerShell.