thehogfather / brackets-code-folding

Code folding extension for brackets IDE
134 stars 42 forks source link

(enhacement) support for tornado-django templates? #86

Open abdelouahabb opened 10 years ago

abdelouahabb commented 10 years ago

hi, first thank you for the extension. can you add a support for django/tornado/flask templates? mean: for tornado, the beginning of a statement if {% if something %} and must end with {% end %} (and can have else, elif) note that tornado is not like django where you add endif or endfor, it is easier, it will just scan for a simple {% end %} Edit: it seems that it will not be an easy task since codemirror dont allow it, must hack it...

thehogfather commented 10 years ago

I dont know much about these template files but looks like it should be fairly trivial to implement. The codeMirror range finders for finding regions in documents are fairly straightforward to write. If you have time you can contribute such a range finder or I can add it to my to-do list ;)

abdelouahabb commented 10 years ago

yes, it seems that it will be something from scratch http://stackoverflow.com/questions/26066967/character-based-folding-in-codemirror