Answer the question
In order to leave comments, you need to log in
Is there a plugin in Atom that will highlight HTML inside a template string?
I am writing a plugin for jQuery with a lot of HTML, I decided to use a template engine from lodash. I put the templates themselves in template strings .
Everything seems to be fine, but without the backlight everything looks not so rosy, can I somehow fix this?
Template example:
var itemTemplate = `
<div class="thumbnail">
<a href="#" data-item="<%-JSON.stringify(item)%>">
<img class="img-resposive" src="<%-item.photo.thumb%>">
<div class="caption"><%-item.description || trans('item.no-description')%></div>
</a>
<a class="times" href="#" data-destroy="item" data-id="<%-item.id%>">
<i class="fa fa-times"></i>
</a>
</div>
`;
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question