coteditor / CotEditor

Lightweight Plain-Text Editor for macOS
https://coteditor.com
Other
6.4k stars 431 forks source link

Nested Syntax Highlighting #617

Open bobrocke opened 8 years ago

bobrocke commented 8 years ago

Something I do often is to write Markdown for Grav. Something common about that with many other systems is the front matter of the document written in YAML, with the remained in Markdown.

Another example might be Twig in HTML (file.html.twig).

So I'd like to request some way to nest syntax highlighting.

1024jp commented 8 years ago

I know such a demand exists. However because CotEditor was not originally designed to have multiple syntax styles in a document at the same time, it requires a fundamental specification change. Therefore it's actually not realistic that I invest a good deal of my time and effort to it, at least for the present.

related: #293

luxlogica commented 6 years ago

Nested syntaxes are quite pervasive in web development: HTML files will often have CSS and Javascript inside