Hi Sorry for my bad english, I hope that you understand the question ... :)
I would like to know if it is possible to show "html syntax error" with colors.
Example : <p> bla bla bla bla bla <p> bla bla bla </p>
I would like the part <p> bla bla bla bla bla <p> bla bla bla </p> in a different color
Perhaps it's possible to select with highlight color the text between <p> and the corresponding end tag </p>
idem for all the tags div /div etc ...
Best Regards
Alain Matthes
On Apr 6, 2008, at 5:20 AM, Alain Matthes wrote:
Sorry for my bad english, I hope that you understand the question ... :)
I would like to know if it is possible to show "html syntax error" with colors.
Example : <p> bla bla bla bla bla <p> bla bla bla </p>
The issue with making any kind of real syntax checking part of the grammar is the number of different html versions there are, all with their own rules. It quickly becomes a nightmare to maintain them all.
As for you example above, that it only actually illegal in XHTML, it's perfectly legal in all forms of html. I'll admit it's perhaps not the favored form, but it is legal. It may be possible to do some simple tag matching though in XHTML mode since all tags must close it makes it a lot easier to do.