Im using sublime to edit html5 docs. But when I started to do quote-free editing like:
<div id=asdf>
instead of
<div id="asdf">
its syntax highlight gone crazy.
Any ideas how to solve this? Is there other up to date parser for sublime?
ty
This Sublime Text thread suggests a way to fix it: http://www.sublimetext.com/forum/viewtopic.php?f=3&t=8129
Open up your HTML.tmLanguage (in ~/.config/sublime-text-2/Packages/HTML) and look for this:
<string>(?<='|")</string>
<key>name</key>
<string>meta.attribute-with-value.id.html</string>
Change the first line to
<string>(?<==|='|=")</string>
Your unquoted values won't be highlighted in the same way that quoted values are highlighted, but it will at least prevent the syntax highlighting from completely breaking.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With