Linux 软件免费装

CodeHighlighter

开发者 blobaugh
iwongu
NikV
更新时间 2013年11月4日 20:38
PHP版本: 2.0 及以上
WordPress版本: 3.4

标签

post formatting code highlighter syntax highlight

下载

1.7 1.8 1.9

详情介绍:

This plugin is a syntax highlighter for source code. It uses GeSHi as fontifier engine. Usage
  1. Put the code snippet in a <code> tag.
  2. Add the lang attribute to the code tag like the following. <code lang="php">
  3. Add the lineno attribute to the <code> tag after the lang tag if you wish to start at a line other than 1. <code lang="cpp" lineno="42">
  4. If you do not add lang attribute, the <code> tag is handled normally.
  5. If you want to have border, add the style like the following to your .css file. code { border: 1px dotted #ccc; padding: 0.2em 0.5em; }
  6. You can use following languages in lang. abap, actionscript, ada, apache, applescript, asm, asp, autoit, bash, blitzbasic, bnf, c, c_mac, caddcl, cadlisp, cfdg, cfm, cpp-qt, cpp, csharp, css-gen, css, d, delphi, diff, div, dos, dot, eiffel, fortran, freebasic, genero, gml, groovy, haskell, html4strict, idl, ini, inno, io, java, java5, javascript, latex, lisp, lua, m68k, matlab, mirc, mpasm, mysql, nsis, objc, ocaml-brief, ocaml, oobas, oracle8, pascal, per, perl, php-brief, php, plsql, python, qbasic, rails, reg, robots, ruby, sas, scheme, sdlbasic, smalltalk, smarty, sql, tcl, text, thinbasic, tsql, vb, vbnet, vhdl, visualfoxpro, winbatch, xml, xpp, z80
Note: Version 1.9 adds support for <code> tags, however to ensure backwards compatibility support for the <pre> tag will not be removed.

安装:

  1. Unzip the plugin archive.
  2. Upload the directory to the /wp-content/plugins/ directory
  3. Activate the plugin through the 'Plugins' menu in WordPress

更新日志:

1.9