brackets-code-folding icon indicating copy to clipboard operation
brackets-code-folding copied to clipboard

(enhacement) support for tornado-django templates?

Open abdelouahabb opened this issue 10 years ago • 2 comments

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...

abdelouahabb avatar Sep 26 '14 17:09 abdelouahabb

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 ;)

thehogfather avatar Sep 29 '14 16:09 thehogfather

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

abdelouahabb avatar Sep 29 '14 17:09 abdelouahabb