Example:SyntaxHighlight
Zur Navigation springen
Zur Suche springen
Usage
Once installed, you can use "syntaxhighlight" tags on wiki pages. For example, <syntaxhighlight lang="python" line="1"> def quickSort(arr):
less = []
pivotList = []
more = []
if len(arr) <= 1:
return arr
else:
pass
</syntaxhighlight>
is the result of the following wikitext markup:
<syntaxhighlight lang="python" line="1" >
def quickSort(arr):
less = []
pivotList = []
more = []
if len(arr) <= 1:
return arr
else:
pass
</syntaxhighlight>