Skip to content

Instantly share code, notes, and snippets.

@crgwbr
Created October 25, 2012 14:47
Show Gist options
  • Save crgwbr/3953001 to your computer and use it in GitHub Desktop.
Save crgwbr/3953001 to your computer and use it in GitHub Desktop.
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