It appears that the code folding does not work for elements named "area". If you open the attached file, you should see that although the "-" boxes appear by the foo and notarea elements, there isn't one by the area element.
I first noticed this using XML Copy Editor 1.0.9.6 on Windows XP Professional SP2, but 1.1.0 still behaves the same way.
Simple XML document that has the problem
Screenshot showing the problem
Logged In: YES
user_id=247081
Originator: YES
File Added: screenshot.gif
Logged In: YES
user_id=1298822
Originator: NO
Thanks Andrew, will need to look into this on my return from holiday (11 Aug).
Thanks especially for sample file and screenshot!
-Gerald
Logged In: YES
user_id=1298822
Originator: NO
Andrew,
I haven't forgotten about this bug, but to be honest I haven't yet worked out what's going wrong. (I didn't write the lexer that controls highlighting and folding, but I'll check the source to see if that gives me any clues.)
-Gerald
This is caused by a line in <wxWidgets>/src/stc/scintilla/src/LexHTML.cxx
tagDontFold = (!isXml) && (NULL != strstr("meta link img area br hr input ",s));
For some reason the IsXml is false, so !IsXml returns true. I checked and folding disappears for meta, link and all the other tags mentioned. I'll look into this some more.
It has been fixed in wxWidgets 2.9.0:
http://trac.wxwidgets.org/changeset/50712