Simple custom filetype, grammar and syntax highlighting


#1

I want to have a .view file type that contains some kind of tags, I’m thinking !js, !coffee, !html, !css, !less, etc which specify a block of text of the specified language. Thus, I’d like the appropriate syntax highlighting for each. Much in the way the text between <script> tags in an html file are syntax highlighted with js highlighting and between <style> tags highlighted with css highlighting.

Anyways, I figured this is pretty simple and easy but I have absolutely no idea how to do this. Can I get some help / instruction / direction?

Thanks


#2

Have you tried starting from the Creating a Theme documentation?