View Source:
Help/SyntaxHighlighterPlugin
Note:
You are viewing an old revision of this page.
View the current version.
The **~SyntaxHighlighter** [[Help:WikiPlugin|plugin]] passes all its arguments through a C++ highlighter called "highlight" (available at [[http://www.andre-simon.de]]). == Arguments == {| class="bordered" |- ! Argument ! Description ! Default value |- | **syntax** | | //None// (required argument), see http://www.andre-simon.de/doku/highlight/highlight.html |- | **style** | | ~[ "ansi", "gnu", "kr", "java", "linux" ~] (required) |- | **color** | | null (optional), see ##highlight/themes## |- | **number** | | 0 (optional) |- | **wrap** | | 0 (optional) |} == Example == {{{ <<SyntaxHighlighter syntax=c style=kr color=bright #include <stdio.h> int main() { printf("Lalala\n"); } >> }}} will give: <<SyntaxHighlighter syntax=c style=kr color=bright #include <stdio.h> int main() { printf("Lalala\n"); } >> I did not use beautifier, because it used up more than 8M of memory on my system and PHP killed it. I'm not sure whether this is a problem with my integration, or with beautifier itself. == Authors == * alecthomas * Fixes by [[Help:Reini Urban|Reini Urban]]: ** support options: syntax, style, color, ** php version switch, ** HIGHLIGHT_DATA_DIR, HIGHLIGHT_EXE constants, <noinclude> ---- [[PhpWikiDocumentation]] [[CategoryWikiPlugin]] </noinclude>
BroadcastHistory
HomePage
How to use this Wiki
Adding Pages
List all Categories
Main Categories
CategoryWikiPlugin
CategoryActionPage
Search
Toolbox
Recent Changes
Recent New Pages
What links here
All pages
Recent Changes
RecentChangesCached
Tape Cartridge History
Favorite Categories
WikiPlugin
(140)
ActionPage
(77)
InterWiki
(18)
InterWiki
(18)
View Page
View Source
History
Diff
Sign In