Recognizing of entities

Oxygen general issues.
honyk
Posts: 176
Joined: Wed Apr 29, 2009 4:55 pm

Recognizing of entities

Post 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
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: Recognizing of entities

Post 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
honyk
Posts: 176
Joined: Wed Apr 29, 2009 4:55 pm

Re: Recognizing of entities

Post 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.
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: Recognizing of entities

Post by sorin_ristache »

We will consider that for a future version.


Regards,
Sorin
Post Reply