ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Angular​2 HTML Syntax

by princemaple ST3

Angular2 HTML Syntax for SublimeText

Details

Installs

  • Total 23K
  • Win 13K
  • OS X 6K
  • Linux 4K
Oct 18 Oct 17 Oct 16 Oct 15 Oct 14 Oct 13 Oct 12 Oct 11 Oct 10 Oct 9 Oct 8 Oct 7 Oct 6 Oct 5 Oct 4 Oct 3 Oct 2 Oct 1 Sep 30 Sep 29 Sep 28 Sep 27 Sep 26 Sep 25 Sep 24 Sep 23 Sep 22 Sep 21 Sep 20 Sep 19 Sep 18 Sep 17 Sep 16 Sep 15 Sep 14 Sep 13 Sep 12 Sep 11 Sep 10 Sep 9 Sep 8 Sep 7 Sep 6 Sep 5 Sep 4 Sep 3
Windows 42 37 51 39 21 30 47 34 45 43 38 25 37 41 40 56 52 28 40 35 65 60 66 61 33 48 55 61 49 78 52 38 36 57 76 57 64 34 29 35 42 57 52 41 56 33
OS X 19 14 28 13 9 18 21 18 12 19 10 4 18 31 23 25 23 11 11 17 19 34 22 27 12 13 27 33 28 29 27 17 10 16 30 28 17 15 11 9 16 11 14 27 20 13
Linux 13 15 14 9 12 14 12 15 18 11 9 8 16 22 21 15 12 13 15 14 16 22 18 18 9 15 16 16 15 13 19 17 10 18 20 24 11 14 6 7 13 11 9 16 19 8

Readme

Source
raw.​githubusercontent.​com

Angular2HTML Syntax for SublimeText

based on the official sublime html syntax

Features

So that it's not broken when there are

attributes on the tags

How to use

I personaly use ApplySyntax plugin with the following setting:

"syntaxes": [
    {
        "syntax": "Angular2 HTML Syntax/Angular2HTML",
        "extensions": ["component.html"],
    },
]

You could use it in other way… e.g. set it as the default syntax for all html files, since it's a superset of the html syntax anyway.