sytaxhighlighter
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
sytaxhighlighter [2017/02/05 14:43] – walkeradmin | sytaxhighlighter [2017/02/05 14:48] – walkeradmin | ||
---|---|---|---|
Line 6: | Line 6: | ||
\\ | \\ | ||
\\ | \\ | ||
- | <sxh [brush alias][; options for SyntaxHighlighter]> | + | 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 ... | ... 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 [XML][; options for SyntaxHighlighter]> | ||
+ | if len(sys.argv)> | ||
+ | WaitTime = int(sys.argv[1])/ | ||
+ | else: | ||
+ | WaitTime = 10/ | ||
+ | </ | ||
sytaxhighlighter.txt · Last modified: 2023/03/09 22:35 by 127.0.0.1