EmberJS and weird IDE (text editor) compatibility
I'm sure many people have noticed that EmberJS has a weird behaviour when
code is written in IDE. That is because the HTML code is inside the tag,
where IDE's expect JS, not HTML.
<script type="text/x-handlebars">
<!--<h2>Welcome to Ember.js</h2>-->
{{outlet}}
</script>
Sublime: The above h2 tag looks like it isn't commented at all. If you use
shortcut for commenting, then it adds // comments which are not doing
anything, they slashes just get rendered into browser.
Brackets: No HTML tags are recognised, they appear as pure text
TextWrangler: Only the closing tags are highlighted as HTML tags
These are the three I tried, nothing seems workable. Is anyone having any
other IDE or knows how to make it work properly?
No comments:
Post a Comment