SyntaxHighlight: Difference between revisions

From Leo's Notes
This page was last edited on 25 May 2020, at 04:00.
No edit summary
No edit summary
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
The plugin being used is from http://www.mediawiki.org/wiki/Extension:SyntaxHighlight_GeSHi
The plugin being used is from http://www.mediawiki.org/wiki/Extension:SyntaxHighlight_GeSHi
Terminal code uses a [[MediaWiki_Custom_Pygments|custom pygment]].
   
   
== Usage ==
== Usage ==
To use SyntaxHighlight on this wiki, use the [[Template:Highlight|Highlight]] template.
To use SyntaxHighlight on this wiki, use the [[Template:Highlight|Highlight]] template.


Line 13: Line 13:
}}
}}


== Issues ==
If you wish to limit the height, add:
The ESXi default shell and zsh {{code|%}} shell are not highlighting properly
{{highlight|lang=text|code=
 
style=max-height:350px;overflow:scroll;
{{highlight|lang=terminal|code=
[root@server:/vmfs/volumes/ee8ff6f0-af4dbc98] sh ./ghettoVCB.sh -f backup_vms
 
leo@nas:/data/vm% ls
backup_vms  esxi-backup/  ghettoVCB.conf  ghettoVCB.sh*
}}
}}

Latest revision as of 04:00, 25 May 2020

The plugin being used is from http://www.mediawiki.org/wiki/Extension:SyntaxHighlight_GeSHi Terminal code uses a custom pygment.

Usage

To use SyntaxHighlight on this wiki, use the Highlight template.

{{highlight|lang=terminal|code=
code goes here
}}

If you wish to limit the height, add:

style=max-height:350px;overflow:scroll;