Instantly share code, notes, and snippets.

Embed
What would you like to do?
SilverStripe HTML Templates
<!-- Add this block to HTML/HTML.tmLanguage in SublimeText 2's package directory to make it recognize SilverStripe style HTML comments -->
<dict>
<key>begin</key>
<string>&lt;%--</string>
<key>captures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.definition.comment.html</string>
</dict>
</dict>
<key>end</key>
<string>--%&gt;</string>
<key>name</key>
<string>comment.block.html</string>
<key>patterns</key>
<array>
<dict>
<key>match</key>
<string>--</string>
<key>name</key>
<string>invalid.illegal.bad-comments-or-CDATA.html</string>
</dict>
<dict>
<key>match</key>
<string>%></string>
<key>name</key>
<string>invalid.illegal.bad-comments-or-CDATA.html</string>
</dict>
<dict>
<key>include</key>
<string>#embedded-code</string>
</dict>
</array>
</dict>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment