Page 1 of 1
Question: is the full tags view stylable?
Posted: Thu Feb 16, 2012 6:26 pm
by liujason
Hi,
I'm using Oxygen XML component in Eclipse for editing DITA XML topics. Is there a way to style the tags in the Full Tags with Attributes view?
For example, when there are many DITA conditional processing attributes on a long topic, it is difficult to spot where are the attributes specified.
Thanks,
Jason
Re: Question: is the full tags view stylable?
Posted: Fri Feb 17, 2012 12:23 pm
by mihaela
Hi Jason,
If you select the
Show Profiling Attributes option from DITA menu > Profiling/Conditional Text (or from the toolbar Profiling menu) a light green border is painted around profiled text. Also, all profiling attributes set on the current element are listed at the end of the highlighted block and in its tooltip message.
The tags presented when "Full Tags with Attributes" mode is set cannot be styled but you could change the DITA CSS to present the profiling attributes at the start of the profiled elements.
For example you could use the following CSS fragment to highlight a node that has the "audience" profiling attribute set:
Code: Select all
*[audience]:before {
content:" Audience: [" attr(audience) "] ";
background-color:#cafe2e;
}
The DITA css files are placed in the css directory of DITA framework:
[oxygen_plugin_directory]/frameworks/dita/css.
The full path of the DITA frameworks directory is presented on the tooltip of the DITA document type entry from Eclipse Preferences > oXygen > Document Type Association.
You could add your CSS modifications in topic.css if you want to be applied in all DITA topics.
Best Regards,
Mihaela