sytaxhighlighter
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
sytaxhighlighter [2017/02/05 14:35] – created walkeradmin | sytaxhighlighter [2023/03/09 22:35] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== SyntaxHighLighter ==== | ====== SyntaxHighLighter ==== | ||
+ | <color darkorange> | ||
+ | \\ | ||
+ | \\ | ||
+ | SyntaxHighLigher is a plugin for DokuWiki. What this plugin does is to correctly format text where formatting would otherwise be lost (Python for an example). | ||
+ | \\ | ||
+ | \\ | ||
+ | The SyntaxHighLighter uses brushes to select the formatting of the text, so if you wish to show XML code, then you select the XML brush, as shown below. | ||
+ | < | ||
+ | <sxh [XML][; options for SyntaxHighlighter]> | ||
+ | ... code/text ... | ||
+ | </ | ||
+ | </ | ||
+ | \\ | ||
+ | This is a great tool because it can take code that looks like the following (this is Python) | ||
+ | \\ | ||
+ | < | ||
+ | if len(sys.argv)> | ||
+ | WaitTime = int(sys.argv[1])/ | ||
+ | else: | ||
+ | WaitTime = 10/ | ||
+ | </ | ||
+ | \\ | ||
+ | So yes it is readable, and stands out, but the formatting is much nicer if it looks similar to how it would in an actual Python development environment, | ||
+ | \\ | ||
+ | <sxh [py][; options for SyntaxHighlighter]> | ||
+ | if len(sys.argv)> | ||
+ | WaitTime = int(sys.argv[1])/ | ||
+ | else: | ||
+ | WaitTime = 10/ | ||
+ | </ | ||
+ | \\ | ||
\\ | \\ | ||
- | + | ---- | |
- | + | ==== Available Brush Types ==== | |
- | + | \\ | |
< | < | ||
- | Brush name | + | Brush name Brush aliases |
- | Brush aliases | + | |
- | File name | + | ActionScript3 |
- | ActionScript3 | + | Bash/ |
- | as3, actionscript3 | + | ColdFusion |
- | shBrushAS3.js | + | C# c-sharp, csharp |
- | Bash/shell | + | C++ |
- | bash, shell | + | CSS |
- | shBrushBash.js | + | Delphi |
- | ColdFusion | + | Diff diff, patch shBrushDiff.js |
- | cf, coldfusion | + | Erlang |
- | shBrushColdFusion.js | + | Groovy |
- | C# | + | JavaScript |
- | c-sharp, csharp | + | Java java |
- | shBrushCSharp.js | + | JavaFX |
- | C++ | + | Perl perl, pl |
- | cpp, c | + | PHP |
- | shBrushCpp.js | + | Plain Text plain, text shBrushPlain.js |
- | CSS | + | PowerShell |
- | css | + | Python |
- | shBrushCss.js | + | Ruby rails, ror, ruby |
- | Delphi | + | Scala |
- | delphi, pas, pascal | + | SQL |
- | shBrushDelphi.js | + | Visual Basic vb, vbnet shBrushVb.js |
- | Diff | + | XML |
- | diff, patch | + | |
- | shBrushDiff.js | + | |
- | Erlang | + | |
- | erl, erlang | + | |
- | shBrushErlang.js | + | |
- | Groovy | + | |
- | groovy | + | |
- | shBrushGroovy.js | + | |
- | JavaScript | + | |
- | js, jscript, javascript | + | |
- | shBrushJScript.js | + | |
- | Java | + | |
- | java | + | |
- | shBrushJava.js | + | |
- | JavaFX | + | |
- | jfx, javafx | + | |
- | shBrushJavaFX.js | + | |
- | Perl | + | |
- | perl, pl | + | |
- | shBrushPerl.js | + | |
- | PHP | + | |
- | php | + | |
- | shBrushPhp.js | + | |
- | Plain Text | + | |
- | plain, text | + | |
- | shBrushPlain.js | + | |
- | PowerShell | + | |
- | ps, powershell | + | |
- | shBrushPowerShell.js | + | |
- | Python | + | |
- | py, python | + | |
- | shBrushPython.js | + | |
- | Ruby | + | |
- | rails, ror, ruby | + | |
- | shBrushRuby.js | + | |
- | Scala | + | |
- | scala | + | |
- | shBrushScala.js | + | |
- | SQL | + | |
- | sql | + | |
- | shBrushSql.js | + | |
- | Visual Basic | + | |
- | vb, vbnet | + | |
- | shBrushVb.js | + | |
- | XML | + | |
- | xml, xhtml, xslt, html, xhtml | + | |
- | shBrushXml.js | + | |
</ | </ |
sytaxhighlighter.1486305347.txt.gz · Last modified: 2023/03/09 22:35 (external edit)