General XMetaL Discussion
gcrews October 24, 2011 at 5:35 pm
Xml commentsOctober 24, 2011 at 5:35 pmParticipants 3Replies 4Last Activity 10 years, 10 months ago
Is it possible to hide xml comments with a CSS?
I know you can toggle them in the options but can it also be done with a CSS?
I am trying to create 2 different CSS for our writers. One for editing that shows comments, prolog, draft-comments conref with gray background, etc.… The other one I am trying to style as close as possible to what the actual output will look like. Is there any way to hide the comments in the second CSS?Derek Read October 24, 2011 at 6:14 pm
Reply to: Xml commentsOctober 24, 2011 at 6:14 pm
There is a proprietary (XMetaL-specific) CSS selector for this named $COMMENT, so you can have this in your CSS:
XMetaL's proprietary selectors are $DOCUMENT, $PROCINS, $COMMENT, $MARKSEC
$PROCINS also supports target and data so you can differentiate between different PIs:
http://forums.xmetal.com/index.php?topic=24.0gcrews October 24, 2011 at 6:32 pm
Reply to: Xml commentsOctober 24, 2011 at 6:32 pm
Nope, that does not work. That’s the first thing I tried. The color attribute seems to have an effect and I can make the comments white but the region still shows up.gcrews October 24, 2011 at 6:43 pm
Reply to: Xml commentsOctober 24, 2011 at 6:43 pm
Update: never mind, looks like the comments do not show up in normal regardless.
I guess I don’t need to remove them from tag view since that’s not really like the output.
- You must be logged in to reply to this topic.