squ1b3r / Djaneiro

Django support for Sublime Text 2/3
MIT License
855 stars 131 forks source link

Comment/Uncomment commands now work in django templates #130

Closed scuml closed 2 years ago

scuml commented 2 years ago

Comment/Uncomment command and hotkeys now work in django templates.

Before the comment key would place invalid comment syntax around text...

{# line 1
line 2 #}

Now the comment command detects if one or multiple lines are selected and intelligently chooses the best comment style:

{# line 1 #} 

{% comment %}
line 1
line 2
{% endcomment %}

Resolves #10

scuml commented 2 years ago

@squ1b3r How does this look?

squ1b3r commented 2 years ago

@scuml I haven't looked through it fully yet. Still need to finish reviewing that Python code. I'll try an find some time later this week.