Subject: Re[2]: Alternative to XSLTHL?
From: Jacek Iwanski <jiva@xxxxxxx>
Date: Tue, 11 May 2010 18:48:18 +0200
|
Hello Dimitre Novatchev,
11 maja 2010 at 00:09:59, you wrote:
[sorry for previous pre-mature posting]
> Some more information about this task, please?
I am migrating from MediaWiki, which uses the following highligher,
written in PHP:
http://www.mediawiki.org/wiki/Extension:SyntaxHighlight_GeSHi
(or a variation of the above)
> 1. What is XSLTHL ?
A single JAR file with syntax highlighting module to be invoked with Saxon, Xalan, etc.
http://sourceforge.net/projects/xslthl/
> 2. What has to be parsed? Grammar + example.
The grammmar is DITA, but all code to parse lies within <codeblock> element.
<codeblock outputclass="php">
some PHP code (no <? or ?> delimiters)
</codeblock>
A good example is
http://www.mediawiki.org/wiki/Extension:GeSHiCodeTag#GeSHiCodeTag_Source
> 3. What is the expected result?
Same as above link.
--
Best regards,
Jacek Iwanski
jiva@xxxxxxx
|