General XMetaL Discussion

  • venglisch

    How to set tag colors

    Participants 0
    Replies 1
    Last Activity 14 years, 1 month ago

    I have an element that appears multiple times within the document as a child of different parents like this:

    I need to set the tag-color (the color the element is being displayed in when in Tag-On view) of the Comment element based on the parent. 
    Is there a way to set the tag color like this in the *.ctm custumization file?

    I've tried to include the 
      Parent2element but both element tags are set to the first color I specified.


    Derek Read

    Reply to: How to set tag colors

    This is not possible. There is no concept of parent elements when it comes to the coloring of element tags using settings in the CTM file.

    If you really need to make it easy to distinguish between elements by color the best you could do in this case would be to change colors using CSS background-color, color or border properties in the CSS file.

    A very simple example:

    Parent1 Comment {color:#FF0000}
    Parent2 Comment {color:#0000FF}


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

Lost Your Password?