General XMetaL Discussion
XMetaL Community Forum › General XMetaL Discussion › Attributes In Tag
-
scotth April 13, 2012 at 6:22 pm
Attributes In Tag
April 13, 2012 at 6:22 pmParticipants 1Replies 2Last Activity 10 years, 9 months agoWe have a customer that is used to using an editor that displays attributes within the tag, immediately following the name of the element. Do XMetaL or XMAX have the capability to do this? If not, does XMAX 6.0 have the capability to turn on tag tips?
Derek Read April 13, 2012 at 6:47 pm
Reply to: Attributes In Tag
April 13, 2012 at 6:47 pmBoth products display “tag tips” when you hover over a tag (you cannot turn that feature off).
[quote=XMetaL Author help topic 'Document views']
Tags On view
In Tags On view, both the content and markup (for example, element start and end tags) of your document are visible. This view is useful for navigating the element hierarchy and positioning the insertion point. Formatting is determined by a Cascading Style Sheet. Structured authoring commands are available from the menus, and rules checking is active.Here are some of the features available in Tags On view:
You can select an entire element by clicking its start or end tag.
You can collapse or expand tags through the right-click menu.
You can view all set attributes by resting the pointer over a tag.It is also possible customize the CSS used with your DTD to show attribute values before or after an element's content.
The following will display some text (“id: “) followed by the value of the @id for
just after the opening tag: myElement:before {
content:"id: " attr(id);
}LeeHart April 16, 2012 at 11:24 pm
Reply to: Attributes In Tag
April 16, 2012 at 11:24 pmHere's some generic CSS that I regularly use when there's an XML file that I want to be able to edit in XMetaL without doing a full customization:
[code]*:before {
color: #FF9900;
}* {
prefix-format: “[ %attribute-list; ] “;
display: block;
margin-left: 6pt;
text-indent: -3pt;
}[/code] -
AuthorPosts
- You must be logged in to reply to this topic.