[dokuwiki] Re: Using GeSHi language definition colors instead of fixed colors for all languages

Christopher Smith wrote:
Your mechanism for including styles isn't really an option. Styles shouldn't be inside the html body element (no matter that most browsers handle this) and if there were several code sections on a page you would be including the styles repeatedly.
I agree. However, the styles could be generated just once, saved to a .css file and included in the proper place etc. That would solve the invalid html problem and the large amount of code to be transmitted.

Have you seen http://www.dokuwiki.org/tips:code_css which puts GeSHi highlighting into conf/userstyle.css
I had not seen this. This is exactly what I needed. Maybe the topics on the forum that refer to other posts and or the bug tracker should refer to this instead...

Personally, I'm in favour of default DokuWiki being lean and able to be extended with plugins particularly appropriate to a specific wiki installation.
Perhaps a plugin that automatically does the things suggested on the tips page would be nice. One could select the languages to include in the css file.

Thanks for your reply,
Dennis
--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist

Other related posts: