6

Sometimes the answer to a question is a simple, or not so simple, batch file or script and likewise some questions include code sections to illustrate the problem. Unfortunately, unlike some other stack overflow sites, it seems that syntax highlighting is off for Software Recommendations.

I have tried adding <!-- language-all: lang-python --> and/or <!-- language: lang-py --> to the content of this answer but it still does not highlight the code sections.

Surely there would be very little overhead in having the syntax highlighting turned on and for such questions & answers there would be a big improvement in the quality of the answers as syntax highlighting add much to the clarity.

1
  • I agree, if that's an issue for someone's system requirements he probably won't find this SE useful anyway... Nov 25, 2015 at 22:16

1 Answer 1

4

Right now, we have 865 posts using a pre block, out of 13362 total (that's about 6.5%). A very unscientific sample of those suggests that code here is often used for running things in the command line (which we probably don't want highlighted) or for other non-highlightables - think AutoHotKey *, input examples, theoretical config files, etc.

Again, this was unscientific and probably wrong. If there's support for this, the CMs want to see a list of posts that would have benefitted from it in the past, as proof that this will actually be used in real life. We can compile that list here if we want to, or make a new post for it.


* I'm not really sure if we can highlight AutoHotKey scripts, but my gut says we can't

1
  • Here are some answers I wrote that I wish had syntax highlighting: #1, #2, #3. Jun 8, 2017 at 16:17

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .