Sublime Forum

Ignore certain characters within a Django comment used in a javascript block

#1

We are using Django Comments in our script tags and sublime text treats apostrophes in these blocks as illegal characters. That results in the following treatment:

https://www.evernote.com/l/AA7NOa31PSpHmrmTAsWNEPk19g2cys1t4UwB/image.png

I’d like to have apostrophe’s be ignored if they are in django comment blocks. Is there a way i can set this up with Sublime Text 2?

0 Likes

#2

Use a syntax definition that properly supports this Django syntax.

0 Likes