[deleted]
Hallo,
I discovered DokuWiki some days ago and want to use it for a small intranet to manage documents with code snippets. Since the Geshi settings for C# don't fit my needs, I adjusted some of the colors (defined in inc/geshi/csharp.php) and added some keywords for C# 3.0. The problem is that I didn't get DokuWiki to use the new colors. In fact, it didn't use the original colors defined in that file at all.
I spent half the evening digging through DokuWiki's code to find out that Geshi just adds the class definitions for syntax highlighting, and DokuWiki uses the colors defined in lib/style/styles.css. I want to use different colors for different programming languages, so is there any way to make DokuWiki use the colors defined in the respective code definition files of Geshi?
Thanks for any suggestions,
Peter.
andi
[deleted]
Oops... sorry. Actually I did use the search, but I just used "syntax highlighting" and similar terms, so that post didn't show up. Thanks very much for the hint!
jbreslow
Thanks for the reply andi. I am a bit perplexed as to why it is necessary to tweak the code when dokuwiki is documented to work with GESHI code and is supposed to color-code code blocks for many languages, including CFM.
Neither suggestion was found in the files it said they were in.
Removing this code: '$geshi->enable_classes();'
and changing this code:
inc/parser/xhtml.php #352
- $geshi->set_overall_class('code');
+ $geshi->set_overall_class("code $language");
That issue is from 2005, I suppose the dokuwiki code has changed a bit since then. Is there another fix?
andi
jbreslow
Hello,
The link on the page you posted a link to is not working. Would you be so kind as to shed some light on why my code syntax is not color coding correctly?
I am using <code cfm> and the colors that are showing in the wiki are not what is specified in cfm.php.