[dokuwiki] Re: syntax hilighting

Galen Johnson wrote:
Hello,

I've just started using docuwiki and already I've written plugin
(actually, just converted a tip to a plugin) and am in the process of
extending some of the syntax highlighting.  I've had some issues with
dokuwiki respecting the settings I set so I went looking on the geshi
site.  I found a message in the archives which fixed my problem but I
don't know if it broke anything else.  In order to get my settings to
override the styles.css file I had to edit the xhtml.php file and set
enable_class() to enable_class(false).  Is this a known issue? Have I
just broken other items by doing so or is there something I'm missing in
how to add an additional syntax?

Dokuwiki is by far the least cumbersome and easiest wiki I've set up.
I must say kudos to the developers.

=G=

You shouldn't need to override the classes. redefine the styles or define a new set of styles with a greater specificity. Dokuwiki only uses the basic geshi classes for its colouring. However the <code lang> syntax will apply a lang as a class to the surrounding <pre> element, allowing you to define your own style selectors as a decendent of the lang (or even .page or .dokuwiki) and override the default settings.

Cheers,

Chris
--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist

Other related posts: