Home Download Buy Blog Forum Support

HTML syntax highlighter has some problem

HTML syntax highlighter has some problem

Postby rodneyzeng on Fri Dec 21, 2012 2:44 pm

ST version: I tested with the newest Windows 64bit version. Have not checked with other versions yet.

To see the problem, copy and paste the following lines into ST2 and save as HTML file:

<!DOCTYPE HTML>
<html>
<body>
<!----------->
<!--Facebook-->
<!----------->
<video width="320" height="240" controls="controls">
<source src="movie.mp4" type="video/mp4">
<source src="movie.ogg" type="video/ogg">
<source src="movie.webm" type="video/webm">
Your browser does not support the video tag.
</video>

</body>
</html>

You can see that, ST2 does not understand the content after
<!----------->
<!--Facebook-->
<!----------->

The syntax highlighter messes up after this comment block.

Notepad++ works well with syntax highlighter on this point.
rodneyzeng
 
Posts: 1
Joined: Fri Dec 21, 2012 2:38 pm

Re: HTML syntax highlighter has some problem

Postby agibsonsw on Fri Dec 21, 2012 3:43 pm

<!--- ---> (with three dashes) are scoped differently than normal HTML-comments; they are like docstrings. Change to <!-- some text here (not just dashes) -->.

errtemp.png
errtemp.png (10.52 KiB) Viewed 349 times
"I'm here to save your life. But if I'm going to do that, I'll need total uninanonynymity." Me Myself & Irene.
agibsonsw
 
Posts: 901
Joined: Fri Jan 27, 2012 9:11 pm


Return to Technical Support

Who is online

Users browsing this forum: Google [Bot], Jun__33 and 7 guests