Joey Hess schrieb:
$gen = highlightc::CodeGenerator_getInstance($highlightc::XHTML);
$gen->setFragmentCode(1); # generate html fragment
$gen->setHTMLEnclosePreTag(1); # include stylish <pre>
$gen->initLanguage("/usr/share/highlight/langDefs/c.lang");
$gen->initTheme("/usr/share/highlight/themes/kwrite.style");
$gen->setEncoding("utf-8");
This is a issue of the API: initTheme() needs to be called before
initLanguage(), as initLanguage initializes HTML open and close
delimiters based on infomation provided by the color theme.
I will provide a helper method which takes care of the right order.
--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org