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
1 answer
62 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 ...
Lindsey D's user avatar
  • 24k
8 votes
0 answers
278 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 ...
Lindsey D's user avatar
  • 24k
2 votes
1 answer
344 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 ...
carlcs's user avatar
  • 36.2k
1 vote
1 answer
126 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 ...
nicael's user avatar
  • 2,382