General XMetaL Discussion
XMetaL Community Forum › General XMetaL Discussion › Xml comments
-
gcrews October 24, 2011 at 5:35 pm
Xml comments
October 24, 2011 at 5:35 pmParticipants 3Replies 4Last Activity 11 years, 5 months agoIs 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 comments
October 24, 2011 at 6:14 pmThere is a proprietary (XMetaL-specific) CSS selector for this named $COMMENT, so you can have this in your CSS:
$COMMENT {
display: none;
}
FYI:
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 comments
October 24, 2011 at 6:32 pmNope, 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 comments
October 24, 2011 at 6:43 pmUpdate: 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.Derek Read October 24, 2011 at 7:21 pm
Reply to: Xml comments
October 24, 2011 at 7:21 pmIf necessary (sounds like it isn't) there is another way to stop comments from appearing in Tags On view and that is to set this INI variable to false: show_comments
-
AuthorPosts
- You must be logged in to reply to this topic.