← Prev in month ← Prev in thread
Next in thread → Next in month →

AW: [docbook-apps] Syntax Highlighting in synopsis elements

From
"[athias Rchindler"
Date
2008-11-27T12:47:30+00:00
ID
Thread
AW: [docbook-apps] Syntax Highlighting in synopsis elements
Oops, I thought "synopsis" included all types of synopsis elements. 

Thank you for your answer!

Mathias

-----Ursprüngliche Nachricht-----
Von: Jirka Kosek [mailto:] 
Gesendet: Dienstag, 25. November 2008 15:25
An: Mathias Schindler
Cc: 
Betreff: Re: [docbook-apps] Syntax Highlighting in synopsis elements

Mathias Schindler wrote:

> In Bob Stayton's "DocBook XSL: The Complete Guide" it says that 
> "Highlighting works with programlisting, screen, and synopsis elements 
> that have a language attribute.".

But in your source there is no synopsis element, only classsynopsis etc.
 Generally syntax highlighting is working in "verbatim" elements. I suppose that in classsynopsis you can quite easily add highlighting by overriding templates for nested elements like ooclass, modifier, ...

In theory syntax highlighting could be combined with the current classsynopsis code, but I'm not sure how well will highlighting fit into templates for nested elements. You can file new RFE at SourceForge site, so once developers have free time (;-)) they might try to implement this feature.

			Jirka

--
------------------------------------------------------------------
  Jirka Kosek      e-mail:       http://xmlguru.cz
------------------------------------------------------------------
       Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
------------------------------------------------------------------
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
------------------------------------------------------------------
← Prev in month ← Prev in thread
Next in thread → Next in month →