Sublime Forum

Sublime Text 3 and HTML comment tweak

#1

Currently in Sublime Text 3 if I have a multiline comment like this: <!— some thing here —> .

If the end comment tag contains an odd number of “-” it doesn’t pick up that it’s an end tag.

So the color coding for comments continues even for code that’s actually not commented out.

It threw me off at first.

Just wanted to let you know!

0 Likes

#2

htmlhelp.com/reference/wilbur/misc/comment.html
w3.org/TR/html4/intro/sgmltut.html#h-3.2.4

Basically, this is not a valid comment. Most browsers will probably get it “right” (as intended) however.

0 Likes