Syntax Highlighter MT free WordPress plugin
Description
Syntax Highlighter MT free WordPress plugin
This plugin works like many of the others that enable the use of the Syntax Highlighter tool. Dynamic plugin loading
is now available as part of the Syntax Highlighter tool, making brush configuration obsolete.
Available brushes are:
applescript
actionscript3 as3
bash shell
coldfusion cf
cpp c
c# c-sharp csharp
css
delphi pascal
diff patch pas
erl erlang
groovy
hive
java
jfx javafx
js jscript javascript
objc obj-c
perl pl
php
pig
text plain
py python
ruby rails ror rb
sass scss
scala
sql
vb vbnet
xml xhtml xslt html
Changing display themes
The display theme can be changed by navigating to Settings -> Syntax Highlighter MT. The themes available are:
Default
Django
Eclipse
Emacs
FadeToGrey
MDUltra
Midnight
RDark
Advanced Usage
Changing the appearance of code
There are many options that can be applied inline to control how your formatted code is displayed. These are appended to the class definition after the brush declaration.
auto-links
Enabled by default. Disabling this turns off link detection in the highlighted section, making URLs non-clickable.
String link = "http://www.megatome.com";class-name Use this to specify one or more classes that should be applied to the generated highlight element. collapse False by default. Forces the highlighted code to be collapsed by default. first-line 1 by default. Change the starting line number for a section of highlighted code.
String link = "http://www.megatome.com";gutter Enabled by default. Turn the line numbers on and off.
String link = "http://www.megatome.com";highlight Specify one or more lines to be highlighted.
String link = "http://www.megatome.com"; System.out.println("Hello World"); System.out.println("Goodbye World");toolbar Enabled by default. Toggle the toolbar.
String link = "http://www.megatome.com";title Allows a title to be set for a block of code. This is not in the class, but in the or tags.
String link = "http://www.megatome.com";Take a look at http://alexgorbatchev.com/wiki/SyntaxHighlighter for the documentation on using the Syntax Highlighter tool.