Thread:Project:Support desk/Format text like a terminal/BASH session./reply (5)

Hi!

No, Geshi Syntax Highlight does not need you make changes in the CSS files. It will provide its styles automatically when it is installed. However, for your situation, you will have to change the CSS manually anyway. Otherwise you would not get black background and light text - also not with Geshi syntax highlight.

In the wiki source code of a page you have to put it inside some kind of container (= some kind of HTML tag), so that you have something, which you can style via CSS. If you enter it like so:

root@my-machine:~$ cd /

root@my-machine:/$ rm -rf /

Then you can enter CSS styles for this in your wiki on the page MediaWiki:Common.css. E.g.

pre.bash { background-color: black; color: grey; font-family: Consolas,Monaco,Lucida Console,Liberation Mono,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier New, monospace; }
 * 1) Style for bash scripts: pre tags with class "bash"