Syntax highlighting

For technical support for all editions of CSE HTML Validator. Includes bug reports.

Syntax highlighting

Postby RSteinwand » Fri Dec 09, 2011 4:23 pm

Hi Albert.

I felt bad that you put out a new beta w/o any input from me. Works well tho.

I'm seeing an issue where syntax highlighting is stopping in my script section (at the end of the body) when it finds > in a quote. I believe this issue exists in older versions as well.

example:
<script type="text/javascript">
function displayMessage(){showMsg('This is a long message sent to a procedure<br />that displays it using html');}
</script>

I don't get a Tidy error, but the syntax gray background ends at the end of "<br />" before the "t" in "that". If I use "\n", older browsers don't show the new line.
Rick
User avatar
RSteinwand
Rank IV - Intermediate
Rank IV - Intermediate
 
Posts: 199
Joined: Mon Jun 09, 2008 2:12 pm
Location: Fargo, ND

Re: Syntax highlighting

Postby Albert Wiersch » Tue Dec 13, 2011 12:52 am

Hi Rick,

I'm sorry for the delay. I reproduced the problem and passed this on to the editor developers.
Image
Albert Wiersch
User avatar
Albert Wiersch
Site Admin
Site Admin
 
Posts: 2435
Joined: Sat Dec 11, 2004 10:23 am
Location: Near Dallas, TX

Re: Syntax highlighting

Postby RSteinwand » Tue Dec 13, 2011 5:59 am

Thanks Albert.
Rick
User avatar
RSteinwand
Rank IV - Intermediate
Rank IV - Intermediate
 
Posts: 199
Joined: Mon Jun 09, 2008 2:12 pm
Location: Fargo, ND

Re: Syntax highlighting

Postby Albert Wiersch » Fri Dec 16, 2011 11:47 am

Hi Rick,

The editor developers have fixed the parser scheme. Can you try the new scheme linked below and let me know if it fixes the problem?
http://www.htmlvalidator.com/ParserSchemes/HTML.xml

You'll need to replace your current HTML.xml file, which is probably stored in a location like "C:\Program Files (x86)\HTMLValidator110\ParserSchemes\syntax\HTML.xml"
Image
Albert Wiersch
User avatar
Albert Wiersch
Site Admin
Site Admin
 
Posts: 2435
Joined: Sat Dec 11, 2004 10:23 am
Location: Near Dallas, TX

Re: Syntax highlighting

Postby RSteinwand » Fri Dec 16, 2011 11:57 am

(x86)? Nice call. :D

Yes, it fixes it. I assumed I'd have to have a program update to fix it.

Thanks.
Rick
User avatar
RSteinwand
Rank IV - Intermediate
Rank IV - Intermediate
 
Posts: 199
Joined: Mon Jun 09, 2008 2:12 pm
Location: Fargo, ND

Re: Syntax highlighting

Postby Albert Wiersch » Fri Dec 16, 2011 12:28 pm

RSteinwand wrote:(x86)? Nice call. :D


That's the standard location for 32-bit programs when using 64-bit Windows (C:\Program Files (x86)\). :D

RSteinwand wrote:Yes, it fixes it. I assumed I'd have to have a program update to fix it.


Great. Let me know if you encounter any other problems with the syntax highlighting. There's a good change such issues can be addressed by fixing the XML parser scheme files. The new scheme file will be included in future updates.
Image
Albert Wiersch
User avatar
Albert Wiersch
Site Admin
Site Admin
 
Posts: 2435
Joined: Sat Dec 11, 2004 10:23 am
Location: Near Dallas, TX

Re: Syntax highlighting

Postby RSteinwand » Thu Dec 29, 2011 10:09 am

Hi Albert, this problem still exists. This will reproduce it (two breaks):

<script type="text/javascript">
function displayMessage(){showMsg('This is a long message sent to a procedure<br /><br />that displays it using html');}
</script>

I'll email you a sample that has the issue at the top and bottom script sections.

I'm also seeing this anomaly, the script highlight extends from the open script to the end of the closing div tag:

<script type="text/javascript">Copyright();</script></div>
Rick
User avatar
RSteinwand
Rank IV - Intermediate
Rank IV - Intermediate
 
Posts: 199
Joined: Mon Jun 09, 2008 2:12 pm
Location: Fargo, ND

Re: Syntax highlighting

Postby Albert Wiersch » Thu Dec 29, 2011 10:25 am

Hi Rick,

Thank you but I cannot reproduce this problem. Are you sure you installed the new parser scheme correctly? You might also want to search your drive for "HTML.xml" and make sure all copies are updated.

Also, this registry key should point to the updated HTML.xml file:
"SchemeFileV110" in "HKEY_CURRENT_USER\Software\AI Internet Solutions\CSE HTML Validator v4\FileTypesAndParsers\V9_SYNTAX_HTML\"
Image
Albert Wiersch
User avatar
Albert Wiersch
Site Admin
Site Admin
 
Posts: 2435
Joined: Sat Dec 11, 2004 10:23 am
Location: Near Dallas, TX

Re: Syntax highlighting

Postby RSteinwand » Thu Dec 29, 2011 10:31 am

Nevermind. I had to copy the syntax xml file again after updating to beta 5.
Rick
User avatar
RSteinwand
Rank IV - Intermediate
Rank IV - Intermediate
 
Posts: 199
Joined: Mon Jun 09, 2008 2:12 pm
Location: Fargo, ND


Return to CSE Tech Support

Who is online

Users browsing this forum: Google [Bot] and 3 guests