Question

I would like to ask where could I find the whole list of supported highlighting feature for template engines like underscorejs, handlebarsjs, mustache.js, etc...

For example, I noticed that handlebarsjs highlighting turns on when I set script's tag type attribute to: text/x-handlebars

Thank you.

UPDATE: a lot of WebEssentials stuff becomes a part of VS/Web Tools. I found CommonHTMLTypes.xsd file in VS schemas folder (Microsoft Visual Studio 12.0\Common7\IDE\CommonExtensions\Microsoft\Web\Schemas\1033\HTML) where you can see what is supported for script tag:

<xsd:simpleType name="scriptTypeType"> <xsd:union> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:enumeration value="text/javascript" /> <xsd:enumeration value="text/html" /> <xsd:enumeration value="text/ng-template" /> <xsd:enumeration value="text/x-handlebars" /> <xsd:enumeration value="text/x-handlebars-template" /> <xsd:enumeration value="text/x-jsrender" /> <xsd:enumeration value="text/template" /> <xsd:enumeration value="text/x-jquery-tmpl" /> </xsd:restriction> </xsd:simpleType> <xsd:simpleType> <xsd:restriction base="xsd:string" /> </xsd:simpleType> </xsd:union> </xsd:simpleType>

Strange enough, but I don't have this file registered in my VS by default and that's why I don't get IntelliSense popup for the type attribute with all these variants

Was it helpful?

Solution

I believe you are talking about Web Essentials feature. Here's a few other related topics.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top