Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [syntax-highlight]

The tag has no usage guidance.

3
votes
0answers
41 views

Why can't Superuser highlight Powershell syntax but SE Android App can?

In this answer I added a small Powershell script. In Firefox and Chromium, that code doesn't show syntax highlighting. I'm using latest Firefox and Chromium browsers and don't want to change it. ...
0
votes
1answer
26 views

Adding 'language-highlighting' tag to a question, necessary?

Consider this question. I provided an answer with a bash script. I did remember to add embedded Prettify language hints. The highlighting didn't get turned on. Then I found this post on Meta SE ...
3
votes
1answer
62 views

Why is syntax highlighting different when added via tag or via <!— language: lang-XXX -->

Take this answer where the tag VBA is used. The system recognizes the tag and automatically turns on syntax highlighting. So far so good. Today I answered another question where no syntax ...
0
votes
0answers
30 views

Why isn't shell syntax highlighting working? [duplicate]

I've been all over Meta Stack Overflow and the help pages, and frankly I'm just tired of looking now. I've tried <!-- language: shell --> and <!-- language: sh -->, but I can't seem to get ...
13
votes
2answers
174 views

Can we activate syntax highlighting for code blocks based on the question's tags?

I think it is time to revisit the syntax highlighting question. There is a similar request that suggests using HTML comments to activate highlighting for specific posts. I would rather implement ...
21
votes
1answer
237 views

Make syntax highlighting possible to enable with prettify language codes

On Super User syntax highlighting is turned off. But there are questions on Super User where syntax highlighting can be helpful. Therefore I suggest that syntax highlighting is made possible to enable ...
16
votes
1answer
191 views

Make “code / command”-background more visible

I write code or commands using "backticks". But on SuperUser, the background doesn't have much visual contrast, so if I write multiple commands separated with comma or a single word, it's hard to ...
8
votes
1answer
99 views

Why is code highlighted in preview, but not in the actual post?

I'm editing my answer to this post and wonder why code blocks are highlighted in the editor's preview, but not in the answer itself. Is it a bug? I don't remember ever having seen code blocks ...