Page 1 of 1

Recognizing of entities

Posted: Tue Aug 18, 2009 6:13 pm
by honyk
Hello,

if the following Docbook code is displayed in Author mode

Code: Select all

<<guilabel>F2</guilabel>>
closing character '>' is colored as processing instruction. I think that common entities like amp, apos, gt, lt, quot should be processed in the same way so either considered as processing instruction or, better from my point of view, to take them as standard characters.

Jan

Re: Recognizing of entities

Posted: Wed Aug 19, 2009 12:10 pm
by sorin_ristache
Hello,

The character '>' can be inserted in Author mode both as the entity reference > and the character '>'. The character '<' can be inserted in Author mode only as an entity reference so that the XML document remain well-formed. It is rendered as character '<' for easy reading and printing. For '<' there is no confusion because it can be only an entity reference, not a character. If you switch to Text mode you see that.


Regards,
Sorin

Re: Recognizing of entities

Posted: Wed Aug 19, 2009 12:29 pm
by honyk
Thanks for reply. In such case it would be nice to have an option for Author mode: 'Display characters not allowed in XML as entities' - without any exception.

Re: Recognizing of entities

Posted: Wed Aug 19, 2009 2:33 pm
by sorin_ristache
We will consider that for a future version.


Regards,
Sorin