Pages: 1
Print
Author Topic: Feature Request: Inline Attribute tags View  (Read 507 times)
Bradley Shoebottom
Member

Posts: 8


« on: November 17, 2011, 02:10:06 PM »

We have 50+ XMetal authors that would find it useful to have an additional view to view the Attributes tags inline. Think of this as a Tags + View or Attributes Tags view that would not require us to look at the raw XML or have to pick our way through the Attribute inspector.
You can reach me at bradley.shoebottom@innovatia.net to discuss further.
Logged
Derek Read
Program Manager (XMetaL)
Administrator
Member

Posts: 1548



WWW
« Reply #1 on: November 18, 2011, 01:47:59 PM »

This can be done by making modifications to the CSS files in your customization. However, this probably needs to be carefully designed so that you do overwhelm your authors with too much information. See: http://forums.xmetal.com/index.php/topic,925.0.html

An alternative (in case you are not aware) is to hover over the tags of an element. When you do this XMetaL will show you the values for attributes that have values.
Logged
LeeHart
Member

Posts: 40


« Reply #2 on: December 16, 2011, 03:29:36 PM »

Related to this, here's a CSS I use for a lot of random XML files. It indents all elements and shows all attributes. It's rarely the best CSS but it's a usable view.

*:before {
  color: #FF9900;
}

* {
  prefix-format: "[ %attribute-list; ] ";
  display: block;
  margin-left: 6pt;
  text-indent: -3pt;
}
Logged
Derek Read
Program Manager (XMetaL)
Administrator
Member

Posts: 1548



WWW
« Reply #3 on: December 20, 2011, 02:38:42 PM »

With a little bit of additional code you could also switch your regular CSS out for this one or something similar with the click of a button or menu item. There is an example of this in the DocBook demo:  Help > Samples > * (DocBook)
Logged
Pages: 1
Print
Jump to: