Sandra Sol Rodrigo wrote:
> 
> I'm working on a docbook with programlistings and I would like to remark
> some code in color, for example <value> in blue or <property> in red.
> Is it possible to do inside the programlisting boxes? And in the normal
> text?
> 

This time, your question is not directly related  to XMLmind XML Editor 
and I'll not be able to help you much.

The answer is yes, but what your request cannot be implemented entirely 
by the technical writer:

--> Step #1: semantic markup.

[a] Select pieces of text in the programlisting.
[b] Convert the selection to <phrase>.
[c] Add a role attribute. Example: role="property".

Example:
---
<programlisting><phrase role="property">foo</phrase>
is
<phrase role="value">bar</phrase>.
That's it.</programlisting>
---

The job of the technical writer stops here.

--> Step#2: Hire a consultant to customize the style sheets.

This consultant needs to customize the CSS style sheet. Doing this is 
simple:
---
programlisting > phrase[role=property] {
     color: red;
}

programlisting > phrase[role=value] {
     color: blue;
}
---

This consultant also needs to customize the XSLT style sheet which 
generates HTML and the XSLT style sheet which generates XSL-FO (used to 
generate PDF, PostScript, RTF, .docx, .odt, etc). This is simple too 
(for a consultant), but it really cannot be done by the technical writer.

Advanced customization of XXE configurations is explained here:
http://www.xmlmind.com/xmleditor/_distrib/doc/configure/customizing.html
(For use by the consultant you'll possibly hire.)




Reply via email to