From Amarok Wiki
Bash is an Amarok Wiki extension,
it adds a bashlike style to any line between <bash> and </bash>
So:
<bash>amarokapp --engine xine</bash> becomes
amarokapp --engine xine
Same for multiline commands:
sudo -s
apt-get install amarok
kbuildsycoca
amarok
As MediaWiki ignores breaks within the code this only would work with <br> at line ends. So it is better to use the wiki code item * for multi line commands.
I really suggest to use the wiki style element * (unordered list) - it will lead to better formating and add $ signs at the beginning of the line. This way it gets a more bash like looking and it is easier to determinate the beginning and end of the line.
- sudo -s
- apt-get install amarok
- kbuildsycoca
- amarok
Things you should know:
- don't start bashified lines with a space, this will lead to wiki style emphasize and breaks the bash layout
- using the wiki stlye element * should on pages with lot of bash commands also be used for single line commands,
- if the page only includes on bash line, it mostly looks better (as in light weighter) to not use *