Emmet in <script type="text/template"
Coding a website with Django+Backbone.js. I have a file with extension .html and some javascript templates in them:
<script type="text/template" id="tpl-choose-allele-count-filter">
<h3>html content</h3>
<p>goes here</p>
</script>
Recently Emmet stopped working within those script tags - but it still works outside them in the same file. Is there a way to activate it without refactoring?
<script type="text/template" id="tpl-choose-allele-count-filter">
<h3>html content</h3>
<p>goes here</p>
</script>
Recently Emmet stopped working within those script tags - but it still works outside them in the same file. Is there a way to activate it without refactoring?
Please sign in to leave a comment.
do you have Javascript in template file type list in Settings | Python Template Languages
I did not, but I just added it and no change.
This is an .html file, which contains javascript templates, which contain html.
I suppose I could refactor so the <script> tags are in a different file than the inner HTML content, but would be pretty frustrating since it worked a couple weeks ago...
Thanks for your help –
Brett
Could you please add there a comment with details about what exactly you're trying to achieve.