SyntaxHighlight: Difference between revisions

From Leo's Notes
This page was last edited on 25 May 2020, at 04:00.
Issues now located at MediaWiki Custom Pygments
No edit summary
 
Line 11: Line 11:
}}
}}


}}
If you wish to limit the height, add:
{{highlight|lang=text|code=
style=max-height:350px;overflow:scroll;
}}
}}

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;