General XMetaL Discussion

  • gcrews

    Xml comments

    Participants 3
    Replies 4
    Last Activity 11 years, 5 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?

    Reply

    Derek Read

    Reply to: Xml comments

    There 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.0

    Reply

    gcrews

    Reply to: Xml comments

    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.

    Reply

    gcrews

    Reply to: Xml comments

    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.

    Reply

    Derek Read

    Reply to: Xml comments

    If 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

    Reply

  • You must be logged in to reply to this topic.

Lost Your Password?

Products
Downloads
Support