Skip to content

Instantly share code, notes, and snippets.

@pbastowski
pbastowski / README.md
Last active March 13, 2018 10:16
Brackets syntax coloring for AngularJS inline-templates

Brackets syntax coloring for AngularJS inline-templates

In the Brackets editor, have you noticed that the HTML within <SCRIPT type="text/ng-template"> is not syntax-colored? Here is how to fix it.

Background

AngularJS has support for inline HTML templates. I am going to explain here only how to get the syntax coloring working, not what inline-templates actually are. To create an inline-template, you put the template's HTML into a SCRIPT tag like this:

    <SCRIPT type="text/ng-template" id="/path/to/your/template.html">template: {{HTML}} here</SCRIPT>