André Simon wrote: > Could you please provide the output of > highlight --print-config
j...@gnu:~>highlight --print-config Root paths (modify with --data-dir and --add-data-dir): Data directory: /usr/share/highlight/ Default search paths: Language definitions: /usr/share/highlight/langDefs/ Colour themes: /usr/share/highlight/themes/ Indentation schemes: /usr/share/highlight/indentSchemes/ Help files: /usr/share/highlight/helpmsg/ Configuration paths: Configuration files: /etc/highlight/ User configuration: /home/joey/.highlightrc Compiler directive HL_DATA_DIR = /usr/share/highlight/ Compiler directive HL_CONFIG_DIR = /etc/highlight/ > The syntax information seems to be broken (regular expressions > missing?), maybe the language definitions are not up to date? Actualy, the highlight command seems to work ok, I only see the problem when trying to use the swig binding from perl. j...@gnu:~>cat highlight.pm #!/usr/bin/perl use highlight; $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"); print $gen->generateString(shift); j...@gnu:~>perl highlight.pm '/* comment */' <pre class="hl"><span class="hl kwa"></span>/* comment */<span class="hl kwa"></span> For the same comment, the highlight command generates <pre class="hl"><span class="hl com">/* comment */</span> -- see shy jo
signature.asc
Description: Digital signature