Stack Exchange Network

Stack Exchange network consists of 174 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-highlighting]

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

12
votes
1answer
60 views

How to format code blocks

How can I post a block of Emacs Lisp code? How can I post some buffer content including special characters and not have them interpreted as markup?
2
votes
1answer
102 views

Syntax highlighting is almost imperceptible, especially the str class

It used to highlight Lisp strings with a brown font. No longer, it seems? <!-- language: lang-el --> It still works with IE (11), but it no longer works with Google Chrome (version 49.0.2623....
14
votes
0answers
82 views

Tune syntax highlighting based on a per-site content-based rule

Stack Exchange's syntax highlighting engine (which is based on Google Prettify) has some heuristics to choose between programming languages when highlighting a block of code. That doesn't work so well ...
18
votes
3answers
224 views

Adding `language: lang-el` to code blocks is not adding syntax highlighting for elisp

Per What is syntax highlighting and how does it work?, it would appear that adding <!-- language: lang-el --> prior to code blocks in Emacs should enable syntax highlighting. Unfortunately it ...