Difference between revisions of "Help:Contents"
From Amahi Wiki
Line 61: | Line 61: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
− | We have set the | + | We have set the [http://www.mediawiki.org/wiki/Extension:SyntaxHighlight_GeSHi syntax highliting] extension with bash as the default language, since it's probably the most common in this wiki. |
= More Help = | = More Help = | ||
[http://meta.wikimedia.org/wiki/Help:Editing Complete editing help] | [http://meta.wikimedia.org/wiki/Help:Editing Complete editing help] |
Revision as of 00:25, 2 January 2011
Help Topics
Wiki Formatting:
Code Formatting
To add formatting to code, we have a little Template:Code code template that can be used like this:
{{Code|bash$ ls -l total 696 ... bash$ }}
Which should look like this:
bash code |
---|
bash$ ls -l total 696 ... bash$
|
Syntax Highlight for Code
If you like syntax highlighting, we have the syntax highlight extension and you can do this:
<syntaxhighlight lang="php"> <?php $v = "string"; // sample initialization ?> </syntaxhighlight>
To look like:
<?php
$v = "string"; // sample initialization
?>
or
<syntaxhighlight lang="ruby"> > ["Amahi", "Linux"].map{|i| "#{i} is cool!"} => ["Amahi is cool!", "Linux is cool!"] </syntaxhighlight>
To look like this:
> ["Amahi", "Linux"].map{|i| "#{i} is cool!"}
=> ["Amahi is cool!", "Linux is cool!"]
We have set the syntax highliting extension with bash as the default language, since it's probably the most common in this wiki.