Prettify GC Syntax Highlighter free WordPress plugin
Description
This plugin has prettify.js copied directly from google-code source browser. So your code will look exactly like it does on google-code. CSS is slightly modified to embolden keywords and types. License See prettify.js for license details (Apache License 2.0). Other files are available under GPLv2. Usage // Put your code here. Or with shortcode: [code] // Put your code here. [/code] Making Code HTML Safe The plugin automatically makes highlighted code html-safe: Anything that goes here will be quoted to appear on the page as-is. For example: To avoid quoting your code, add dontquote as the first class. Remember to quote manually. For example: Line Numbering Line numbdering can be enabled as follows: // Put your code here. If you want to start with a line number 42, you can do the following: // Put your code here. Highlighting Lines When line numbering is enabled you can highlight one or several lines of code using the highlight class: // line 2 // line 3 // line 4 Alternatively you can highlight one or several code segments: // line 2 // line 3 // line 4 // line 5 Note: This feature is not available when line numbering is disabled. Specifying Language Most of the time the highlighter will do a good job guessing how to highlight the code. However, to achieve the best result, you should specify the language: // Put your code here. Replace YOURLANG with one of the following: aea agc apollo bsh c cc cl cpp cs csh css-str cv cxx cyc default-markup el fs go hs htm html java js json lisp lua m ml mxml perl pl pm proto py rb scala scm sh sql vhd vhdl wiki xhtml xml xsl yaml yml Shortcode Here is a quick example. All the parameters are optional. [code
Features
Cost:
Free
Provider:
Aleksey Nikiforov (lex)
Popularity:
Low
WPMarket

