[deleted]
Hey there,
I use a lot of <code java> Sample Text </code> for displaying codes in my DokuWiki. The codes are being displayed in different colors; however, when I print such a page, it is all black and white. Does anybody know how to print codes in colors?
Your help is highly appeciated...
:)
[deleted]
Found the solution: The last lines (after /* syntax highlighting code */) of the file style.css need to be pasted into print.css.
snathan99
In Hrun, under lib/styles directory, add the line @import "geshi.less"; (as it is in screen.css) to print.css. However, for reasons I could not understand and did not have the patience to investigate why, it only works if you copy/paste and append the geshi.less file contents to print.css
klap-in
The LESS parser assumes that @import *.css can be used directly, so it keeps the url, and the browser may load the file from this url.
The Less parser should parse content of a *.less file. So therefore it reads and copies the content in to file that is served at exe/css.php.
screen.css are the stylesheets that are shown if you are in a screen mode, that is displaying the wiki at an normal computer or mobile screen.
print.css are the stylesheets that are used when you print a site (you can preview the result via the print preview of the browser)
the all.css is used always, for every display mode.
However, when these css styles are already included in screen, and adding it to 'all' as well, will duplicate it.