Home Download Buy Blog Forum Support

HTML syntax problem

HTML syntax problem

Postby fcgrx on Sat May 18, 2013 9:07 pm

It seems there's a problem with the Sublime HTML syntax. Paste the code below into a new file and set the syntax to HTML. On my installation at least (ST2, most recent version) empty quotes seem to be treated as open quotes, and cause highlighting problems until you "cap the leak" by putting an additional closing quote and closing bracket.

Code: Select all
<option value=''>
<option value='12'>
<option value='13'>
'> <!-- NOTE: WITHOUT THIS EXTRA CLOSING QUOTE AND CLOSING BRACKET, THE STRING WOULD REMAIN OPEN FOREVER -->
<input value="" maxlength="20" />
<input value="12" maxlength="10" />
  "> <!-- NOTE: WITHOUT THIS EXTRA CLOSING QUOTE AND CLOSING BRACKET, THE STRING WOULD REMAIN OPEN FOREVER -->
<form name="catmenu" action=''>
  '>  <!-- NOTE: WITHOUT THIS EXTRA CLOSING QUOTE AND CLOSING BRACKET, THE STRING WOULD REMAIN OPEN FOREVER -->


See attached screen shot that shows the problems in color.

Is anyone else able to reproduce this?
Attachments
Screen Shot 2013-05-18 at 1.37.56 PM.png
Screen Shot 2013-05-18 at 1.37.56 PM.png (95.06 KiB) Viewed 313 times
fcgrx
 
Posts: 23
Joined: Sat May 04, 2013 1:58 am

Re: HTML syntax problem

Postby zloutenka on Sat May 18, 2013 9:17 pm

Strange, it works ok for me:

Image
zloutenka
 
Posts: 13
Joined: Mon May 07, 2012 12:44 pm

Re: HTML syntax problem

Postby fcgrx on Sun May 19, 2013 12:52 am

Ooops my bad. Syntax conflct.
fcgrx
 
Posts: 23
Joined: Sat May 04, 2013 1:58 am


Return to Technical Support

Who is online

Users browsing this forum: Yahoo [Bot] and 10 guests