This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [docbook-apps] color coding


Orm Finnendahl wrote:

For the sake of syntax highlighting I would use <phrase role="keyword">, <phrase role="literal"> or something like that.


IIUC "keyword" or "literal" can be replaced by whatever name I'm
coming up with, as long as I define the appropriate behaviour for
those roles in the xsl template customization?

Yes, you can store any value in the role attribute. It is here to carry user-defined values.


I was thinking of writing some sort of preprocessing as suggested in
(1.) as I already did the emacs mode for this language including
indenting and syntaxhighlighting and use some of those functions for
this.

Then hacking htmlize mode to output DocBook source with <phrase role="xxx"> probably will be the easiest solution.


Jirka

--
-----------------------------------------------------------------
  Jirka Kosek  	
  e-mail: jirka@kosek.cz
  http://www.kosek.cz

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]