# Could we have syntax highlighting?

It happens quite often for mathematical or logical puzzles to be solved creating some programs or scripts, maybe to find the best solution to the task. By the way I actually got a bit disappointed when I found out that, even though I did apply the correct syntax highlighting string to recognize the language, my post containing a Python snippet got published without syntax highlighting.

In other Stack Exchange sites, syntax highlighting is enabled by default for code snippets, and users can use the following syntax in their markdown

<!-- language: lang-[name] -->


to highlight their snippets, replacing [name] with the name of the language they use, or with none for no highlighting.

My suggestion is to make syntax highlighting possible even here (not by default) under the right syntax. Could we have this feature here on Puzzling SE?

• Good idea with no downside. – A E Mar 28 '15 at 11:48
• Definitely agree! Is there anything we can do to get this to the attention of people with the power to make this change? – Joe Lee-Moyet Apr 15 '15 at 9:28
• @yjo maybe posting it to Meta SE will bring it to the attention of more people, but I'm not sure it would be very welcome, so I don't exactly know what to do – Marco Bonelli Apr 15 '15 at 9:33
• Disappointing to see only 50 views in 5 years. Guess this feature won't happen :( – risky mysteries Oct 29 '20 at 1:02