adobe/CodeMirror2 — pull request #54 by peterflynn (2012-04-23 04:48:35+00:00)
Title: Highlight script blocks containing Handlebars/Mustache as HTML

In HTML script blocks, highlight Handlebars and Mustache templates as HTML. Continue to highlight Javascript and unspecified type as JS; and continue to highlight all other unknown types as plain text.

This is essentially a refinement of pull #38. Driven by feedback from the recent mini-app hackathon.

Eventually, I assume we'll want to make this an extensibility point, where modes for different nestable languages could be plugged in. And eventually we'll probably want real Handlebars/Mustache-specific syntax highlighting modes. This doesn't attempt either of those things -- it's just a quick low-hanging fruit fix to improve productivity for a common use case.