Questions tagged [syntax-highlighting]

For questions about the syntax highlighting performed inside code blocks on Craft CMS Stack Exchange.

Filter by
Sorted by
Tagged with
2
votes
1answer
61 views

Should any automatic syntax highlighting be applied to Twig examples?

Since Twig syntax highlighting is a myth, should we have twig tagged posts adhere to some other auto-highlighting syntax? The best options would probably be either html (which could lead to weird ...
8
votes
0answers
270 views

Twig syntax highlighting is a myth*

TL;DR There is no such thing as Twig syntax highlighting on Stack Exchange. If you want to contribute to the development yourself, join the Google Code Prettify project. * Prove me wrong, and I will ...
2
votes
1answer
325 views

Temporary removal of twig syntax highlighting?

Twig syntax highlighting in code blocks is a mess. Many things just don't work (see first bug report and examples below) and make reading code less clear than without highlights. Please remove the ...
1
vote
1answer
116 views

Bug in syntax highlighting

Shog9 enabled syntax highlighting some time ago. Wonderful. But seems like it highlights comments wrongly - as if they start with #: {% if 1==1 %} {# do something #} {% elseif %} {# something ...