1
Leave a Reply

avatar
1 Comment threads
0 Thread replies
0 Followers
 
Most reacted comment
Hottest comment thread
1 Comment authors
Jason Recent comment authors
  Subscribe  
newest oldest most voted
Notify of
Jason
Guest

I was able to achieve this, here is the gist for ts.cson file. form atom typescript plugin on my system: /Users/amin/.atom/packages/atom-typescript/grammars/ts.cson https://gist.github.com/aminroosta/509476f48f05f4b56db2c0748fedc8fd This is very useful for angular2 development, here is an screenshot for atom with html and css highlights: I couldn’t find a better regex to match against template: and styles:[, if anyone can come up with a better regex i will accept their answers. the important changes in ts.cson file are: "template-html": name: "meta.template.html.ts" begin: "`<!---->" beginCaptures: "0": name: "string.quoted.template.ts" end:"`" endCaptures: "0": name: "string.quoted.template.ts" patterns: [ { include: "text.html.basic" } ] "template-css": name: "meta.template.css.ts" begin: "`/\*\*/" beginCaptures:… Read more »