Sublime Text 2 HTML5 syntax highlighting

I am using sublime to edit html5 docs. But when I started doing editing without quotes, for example:

<div id=asdf>

instead

<div id="asdf">

syntax highlighting went crazy.

enter image description here

Any ideas how to solve this? Is there any other updated parser for the sublime?

ty

+5
source share
3 answers

This Sublime Text stream offers a way to fix it: http://www.sublimetext.com/forum/viewtopic.php?f=3&t=8129

Open your HTML.tmLanguage (in ~ / .config / sublime-text-2 / Packages / HTML) and look at this:

  <string>(?&lt;='|")</string>
  <key>name</key>
  <string>meta.attribute-with-value.id.html</string>

Change the first line to

<string>(?&lt;==|='|=")</string>

, , , , .

+5

free html - . . , , , .

+3

I need to go with Dbugger on this. I feel compelled not to help you set up Sublime so as not to β€œreport” bad HTML rules. With that said, the answer to your question in quotes will eliminate the strange highlighting in Sublime.

-1
source