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:

<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.


You can see that, ST2 does not understand the content after

The syntax highlighter messes up after this comment block.

Notepad++ works well with syntax highlighter on this point.
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 (10.52 KiB) Viewed 528 times
"I'm here to save your life. But if I'm going to do that, I'll need total uninanonynymity." Me Myself & Irene.
Posts: 901
Joined: Fri Jan 27, 2012 9:11 pm

Return to Technical Support

Who is online

Users browsing this forum: Exabot [Bot] and 11 guests