WordPress.org

Plugin Directory

Test out the new Plugin Directory and let us know what you think.
!This plugin hasn’t been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

WP Code Highlight

WP Code Highlight provides clean syntax highlighting and it also provides a code button.

WP Code Highlight provides syntax highlighting of source code snippets and it is W3C valid. Wrap code blocks with <pre> and </pre> It provides a code button(HTML editor) to help you insert code in articles easily. You don't need to specify the language since WP Code Highlight will guess, all languages are supported. You can put line numbers in your code if you need. There are 4 highlight themes, you can choose from them or display by random. It can also load wp-code-highlight.css from current wordpress theme directory. It can delete its own options, so it is also a green plugin !

Basic Usage

  1. Download and extract wp-code-highlight.zip to wp-content/plugins/
  2. Activate the plugin through the "Plugins" menu in WordPress
  3. "Dashboard"->"Users"->"Your Profile"->"Disable the visual editor when writing"
  4. "Dashboard"->"Settings"->"WP Code Highlight"
  5. Wrap code blocks with <pre> and </pre> (It provides a code button in the HTML editor)
  6. You don't need to specify the language since WP Code Highlight will guess, all languages are supported
  7. It can also load wp-code-highlight.css from current wordpress theme directory

More Information

For more information of this plugin, please visit: Plugin Homepage.

Related Links:

Requires: 2.7 or higher
Compatible up to: 3.9.14
Last Updated: 2 years ago
Active Installs: 4,000+

Ratings

4.1 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,2,2 100,2,2
50,2,1
0,1,0
100,2,2
100,2,2
0,1,0
100,1,1
100,1,1
100,1,1
100,1,1
100,1,1