rgshew wrote:When short (single, no attribute) tags are broken by wrapping they no longer are highlighted.
That's not surprising if you look at the words for HTML in the wordfile. It contains for example
<LI> <LI </LI> but no
/LI> and a line break is always a word delimiter.
Open the wordfile with Advanced - Configuration - Editor Display - Syntax Highlighting - button Open.
rgshew wrote:Would it be possible to modify the syntax highlighting/word wrapping behavior so that tags without spaces would stay together like single words?
Yes, with removing
<> from the list of delimiter characters as already suggested.
A language with keyword HTML_LANG or XML_LANG activates internally in the UE syntax highlighting engine some special routines. The characters
<> are recognized as word delimiters for syntax highlighting even if they are not specified as word delimiters and can be specified nevertheless together with a word for highlighting. For all other languages a combination of delimiters with a word is not possible. Exception: since UE v10.00 words can start with a single delimiter character. The wrapping engine recognizes only the characters which are really specified as delimiters. This special handling for
<> enables you to highlight
<b>bold</b> even when the characters
</> are not specified as delimiters and so the wrapping engine will not wrap this string because for the wrapping engine this string is a single "word".