Separate colour for external parsed entity 'tags' in 'Author' mode?

Would you consider supporting a separate colour for the indicative 'tags' for the start and end of an external parsed entity that are shown when viewing all tags in 'Author' mode? The background does change, and there is the rather small icon, but there are sometimes three or more tags (real and indicative, combined) on the lines at the start and end of an external parsed entity. Regards, Tony Graham. -- Senior Architect XML Division Antenna House, Inc. ---- Skerries, Ireland tgraham@antenna.co.jp

Hi Tony, If you have access to the CSS used to render the XML in the Author visual editing mode, in the CSS after all the imports you can define this namespace:
@namespace oxy "http://www.oxygenxml.com/extensions/author";
and then add this extra selector to it:
oxy|entity { display:-oxy-morph !important; -oxy-display-tags: default !important; -oxy-tags-background-color:yellow !important; -oxy-tags-color:green !important; }
By the way for the next Oxygen version (version 17) we changed the default display of entity references in the Author visual editing mode to hide the start and end tags completely for them, something like:
-oxy-display-tags: none !important;
What do you think of the change we plan to make? It makes entity references look more seamlessly embedded in the content. Regards, Radu Radu Coravu <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com On 1/20/2015 11:48 AM, Tony Graham wrote:
Would you consider supporting a separate colour for the indicative 'tags' for the start and end of an external parsed entity that are shown when viewing all tags in 'Author' mode?
The background does change, and there is the rather small icon, but there are sometimes three or more tags (real and indicative, combined) on the lines at the start and end of an external parsed entity.
Regards,
Tony Graham.

On 20/01/15 12:30, Oxygen XML Editor Support (Radu Coravu) wrote:
If you have access to the CSS used to render the XML in the Author visual editing mode, in the CSS after all the imports you can define this namespace:
@namespace oxy "http://www.oxygenxml.com/extensions/author";
and then add this extra selector to it:
oxy|entity { display:-oxy-morph !important; -oxy-display-tags: default !important; -oxy-tags-background-color:yellow !important; -oxy-tags-color:green !important; }
That works well, thank you. I was expecting that entities such as '>' would also change colour, but I wasn't expecting comments to turn yellow as well.
By the way for the next Oxygen version (version 17) we changed the default display of entity references in the Author visual editing mode to hide the start and end tags completely for them, something like:
-oxy-display-tags: none !important;
What do you think of the change we plan to make? It makes entity references look more seamlessly embedded in the content.
I've been thinking about this since your email. Since I'm not tag-averse, I'd probably change/keep the CSS to make them visible. As it is, because I have CSS that sets the background colour for some elements, every so often I find myself wondering why I can't edit some text and it's because the text is in an external reference but I can't see the usual grey background that indicates that it is external text. The other conceptual difficulty that I haven't actually run into yet is nested entities, particularly if an entity reference is the last thing in an element that is the last thing in its own external parsed entity. If you assume all the right entity declarations for these files: a.xml: ---- <entities>end?</entities> ---- b.xml ---- <the><nested>&a.xml;</nested></the> ---- c.xml ---- <where><do>&b.xml</do></where> ---- then the Author mode view of 'c.xml' is something like: ---- <where><do><the><nested><entities>end?</entities></nested></the></do></where> ---- In principle, I'd like to know where the entities end, but maybe it's sufficient that I have the option of changing the CSS so I can see the 'tags' for the starts and ends of the entities. Regards, Tony Graham. -- Senior Architect XML Division Antenna House, Inc. ---- Skerries, Ireland tgraham@antenna.co.jp

Hi Tony, One thing I don't understand is this remark:
I was expecting that entities such as '>' would also change colour, but I wasn't expecting comments to turn yellow as well.
The selector I gave you should not influence the appearance of XML comments in any way. XML comments have always been shown with yellow background and green foreground. If I have not properly understood this, please send us a screenshot. Regards, Radu Radu Coravu <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com On 1/27/2015 2:51 PM, Tony Graham wrote:
On 20/01/15 12:30, Oxygen XML Editor Support (Radu Coravu) wrote:
If you have access to the CSS used to render the XML in the Author visual editing mode, in the CSS after all the imports you can define this namespace:
@namespace oxy "http://www.oxygenxml.com/extensions/author";
and then add this extra selector to it:
oxy|entity { display:-oxy-morph !important; -oxy-display-tags: default !important; -oxy-tags-background-color:yellow !important; -oxy-tags-color:green !important; }
That works well, thank you. I was expecting that entities such as '>' would also change colour, but I wasn't expecting comments to turn yellow as well.
By the way for the next Oxygen version (version 17) we changed the default display of entity references in the Author visual editing mode to hide the start and end tags completely for them, something like:
-oxy-display-tags: none !important;
What do you think of the change we plan to make? It makes entity references look more seamlessly embedded in the content.
I've been thinking about this since your email. Since I'm not tag-averse, I'd probably change/keep the CSS to make them visible.
As it is, because I have CSS that sets the background colour for some elements, every so often I find myself wondering why I can't edit some text and it's because the text is in an external reference but I can't see the usual grey background that indicates that it is external text.
The other conceptual difficulty that I haven't actually run into yet is nested entities, particularly if an entity reference is the last thing in an element that is the last thing in its own external parsed entity.
If you assume all the right entity declarations for these files:
a.xml: ---- <entities>end?</entities> ----
b.xml ---- <the><nested>&a.xml;</nested></the> ----
c.xml ---- <where><do>&b.xml</do></where> ----
then the Author mode view of 'c.xml' is something like:
---- <where><do><the><nested><entities>end?</entities></nested></the></do></where>
----
In principle, I'd like to know where the entities end, but maybe it's sufficient that I have the option of changing the CSS so I can see the 'tags' for the starts and ends of the entities.
Regards,
Tony Graham.

On 27/01/2015 14:31, Oxygen XML Editor Support (Radu Coravu) wrote:
One thing I don't understand is this remark:
I was expecting that entities such as '>' would also change colour, but I wasn't expecting comments to turn yellow as well.
The selector I gave you should not influence the appearance of XML comments in any way. XML comments have always been shown with yellow background and green foreground. If I have not properly understood this, please send us a screenshot.
Attached. The 'tags' for a comment at the start of an external parsed entity are picking up the styles for the 'tags' for the external parsed entity, but other comments remain with black-on-grey 'tags'. Regards, Tony Graham. -- Senior Architect XML Division Antenna House, Inc. ---- Skerries, Ireland tgraham@antenna.co.jp

Hi Tony, Thanks, I understand now. This is a small bug on our part, the CSS properties which control the tag color and bgcolor should not be inheritable by XML comments. I'll fix this. Regards, Radu Radu Coravu <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com On 1/27/2015 7:17 PM, Tony Graham wrote:
On 27/01/2015 14:31, Oxygen XML Editor Support (Radu Coravu) wrote:
One thing I don't understand is this remark:
I was expecting that entities such as '>' would also change colour, but I wasn't expecting comments to turn yellow as well.
The selector I gave you should not influence the appearance of XML comments in any way. XML comments have always been shown with yellow background and green foreground. If I have not properly understood this, please send us a screenshot.
Attached.
The 'tags' for a comment at the start of an external parsed entity are picking up the styles for the 'tags' for the external parsed entity, but other comments remain with black-on-grey 'tags'.
Regards,
Tony Graham.
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user
participants (2)
-
Oxygen XML Editor Support (Radu Coravu)
-
Tony Graham