开发者 | capynet |
---|---|
更新时间 | 2014年3月27日 11:28 |
PHP版本: | 3.3 及以上 |
WordPress版本: | 3.8.1 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
style="manni"
defines code styling. Currently are 22 available styles.
Default styling is default
wich is very nice, but maybe you like other styles. see "Color styles" section.
If you set "linenumbers" to inline
or table
, the line numbers will be added as independent table column or as part of the line.
Examples
[javascript]
//comment line
var foo = "foo";
var bar = function(){
var baz;
}
[/javascript]
Outputs highlighted js with default style, and no line numbers.
[javascript style="monokai" linenumbers="inline"]
//comment line
var foo = "foo";
var bar = function(){
var baz;
}
[/javascript]
Outputs highlighted js with monokai style with line numbers (as part of the line).
[javascript style="monokai" linenumbers="table"]
//comment line
var foo = "foo";
var bar = function(){
var baz;
}
[/javascript]
Outputs highlighted js with monokai style with line numbers (as new column).
Color styles
These are supported color styles:
monokai
manni
rrt
perldoc
borland
colorful
default
murphy
vs
trac
tango
fruity
autumn
bw
emacs
vim
pastie
friendly
native
apacheconf
: (.htaccess, apache.conf, apache2.conf)bash
, sh
, ksh
:
(.sh, .ksh, .bash, .ebuild, *.eclass, .bashrc, bashrc)ini
, cfg
: (.ini, .cfg)makefile
:
(.mak, Makefile, makefile, Makefile., GNUmakefile)nginx
:
Nginx configuration fileyaml
:
(.yaml, .yml)perl
:
Perl (.pl, .pm)vb.net
:
VB.net (.vb, .bas)console
:
Bash Session (*.sh-session)javascript
: Pure Javascriptcoffeescript
: Pure CoffeeScriptjson
: Pure JSONcssphp
: PHP embedded in CSShtmlphp
: PHP embedded in HTMLjsphp
: PHP embedded in JSphp
: Pure PHPxmlphp
: PHP embedded in XMLruby
, duby
: Ruby (.rb, .rbw, .rake, .gemspec, .rbx, .duby)csserb
, cssruby
: Ruby embedded in CSSxmlerb
, xmlruby
: Ruby embedded in XMLcss
:
CSS (*.css)sass
:
Sass (*.sass)scss
:
SCSS (*.scss)html
:
HTML (.html, .htm, .xhtml, .xslt)haml
:
Haml (*.haml)jade
:
Jade (*.jade)sql
:
SQL (*.sql)sqlite3
:
sqlite3con (*.sqlite3-console)mysql
:
MySQLpython
: Pure Pythonpython3
: Pure Python 3xmldjango
, xmljinja
: Django/Jinja embedded in XMLcssdjango
, cssjinja
: Django/Jinja embedded in CSSdjango
, jinja
: Pure Django/Jinjahtmldjango
, htmljinja
: Django/Jinja embedded in HTMLjsdjango
, jsjinja
: Django/Jinja embedded in Javascriptjava
:
Java (*.java)clojure
:
clojure (*.clj)groovy
:
Groovy (*.groovy)jsp
:
Java Server Page (*.jsp)cobjdump
: c-objdump (*.c-objdump)c
: C (.c, .h, *.idc)cpp
: C++ (.cpp, .hpp, .c++, .h++, .cc, .hh, .cxx, .hxx)csharp
: C# (*.cs)objectivec
: (*.m)xml
: (.xml, .xsl, .rss, .xslt, .xsd, .wsdl)xslt
: (.xsl, .xslt)/wp-content/plugins/
directoryAn answer to that question.