Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 348814

Summary: [client] Improve HTML syntax highlighting
Product: [ECD] Orion Reporter: Mark Macdonald <mamacdon>
Component: ClientAssignee: Mark Macdonald <mamacdon>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: simon_kaegi
Version: 0.2   
Target Milestone: 0.4 RC2   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Mark Macdonald CLA 2011-06-08 17:18:00 EDT
The HTML highlighting could be improved. Some issues are:

1. Complicated DOCTYPEs are not colored
> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

2. Attributes and quoted strings should not be colored outside of a tag
> <b>foo="bar"</b> <i>'foo'</i>

3. Entity references like &amp; are not colored
Comment 1 Mark Macdonald CLA 2011-10-20 14:40:50 EDT
Not for 0.3
Comment 2 Mark Macdonald CLA 2012-02-02 14:28:24 EST
I'd like to get some low-hanging improvements here for RC1
Comment 3 Mark Macdonald CLA 2012-02-10 17:57:44 EST
#1 is fixed. The problem was that the DOCTYPE had to be on one line. Now they can span more than one line.
http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=32ce388e0bbe4dd8f6a96ae5cd4fa292928baad7

#2 requires some more complicated changes to how the grammar handles tags, which I'm hesitant to make in an RC. Opened 371296 to track.

#3 is fixed.
http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=e46c245bbe0726d43a1d8ddcd287424242f1c7b9