angular-ui / AngularJS-sublime-package

AngularJS code completion, snippets, go to definition, quick panel search, and more.
MIT License
1.42k stars 169 forks source link

Syntax Feature Request #31

Closed matthughes closed 11 years ago

matthughes commented 11 years ago

I'd love better syntax highlighting of the HTML to better indicate what is an Angular directive and what is plain HTML.

Elements/Attributes that have hyphens would be different color than elements/attributes that don't have them. This may be too limiting, so we could expose a setting that allows the user to configure which prefixes are angular ones. ng- would be one by default, but users could add other custom ones.

subhaze commented 11 years ago

As far as I know you can not hot swap things like that in the syntax file but we could add that feature (any dashed attributes) to the existing custom HTML syntax file that's provided.