andi
Be sure to use the standard names for the various highlighting CSS classes. DokuWiki uses the same color rules for all languages.
lokiarmos
I have written a custom Geshi languge file and checked with the tools that come with geshi (I have downloaded the latest version and checked it against it).
I have also updated Dokuwiki with the same version but when i put a code section in my page it does not show the syntax coloring but will work with the test page in geshi.
Is there something in dokuwiki to enable the use of custom languages.
lokiarmos
OK, then how do i know what values have been returned by my language file.
I based it off the VB language file so i would assume that it would of worked.
I have attached the language file if you want to have a look. I would really like for this language file to work as we are using dokuwiki for our systems administration guide and there will be a lot of LDAP paths in the document and the color coding would make it nicer.
Any help would be appreciated.
lokiarmos
I did some further testing and found that if I installed the code2 plugin the language file works.
Don't know why it does not work with the standard "<code>" code but it works with this one. So that is a resolution to my problem.
Thanks anyway.
Now it would be nice if you could have different colors for different languages. Can't have them all I guess.
turnermm
Is there a complete list of these names? I've believe I've encountered classes that use the same prefix as in style.css, but have numerical suffixes that are not listed there. For instance, I seem to recall a class named either sy1 or st1, whereas style.css lists only sy0 and st0. I got around this with a generalizing regular expression but would have preferred specific names.
Thanks.