Wordwrap and HTML char entities workaround
Posted: Mon Mar 25, 2002 10:59 pm
While editing an HTML file in TP4.5, I found that the HTML character entity " was being treated like a word for the purpose of word wrap. If a line was broken at the ";" in ", I was ending up with an extra undesired space inserted after the ";". This space is displayed when the edited HTML is viewed in a web browser.
I tried some of the related suggestions I found here and THEY ALL FAILED - that is setting KeyWordChars in the html.syn file did nothing, and adding ";" to the "other characters" dialog under configure-> document->classes->html->syntax for the also did nothing.
What I found that worked was to edit two lines in html.syn
CharStart = &
CharEnd = ;
to
CharStart =
CharEnd =
The side effect is that HTML character entities are no-longer highlighted. That I can live with.
I tried some of the related suggestions I found here and THEY ALL FAILED - that is setting KeyWordChars in the html.syn file did nothing, and adding ";" to the "other characters" dialog under configure-> document->classes->html->syntax for the also did nothing.
What I found that worked was to edit two lines in html.syn
CharStart = &
CharEnd = ;
to
CharStart =
CharEnd =
The side effect is that HTML character entities are no-longer highlighted. That I can live with.