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.

FV Code Highlighter

Description

Do you have a lot of code on your blog, and want to make it more readable? Then this is the plugin for you!
This plugin supports the highlighting of PHP, (x)HTML, JavaScript, CSS and XML. The default highlighter
color scheme uses the same colors Adobe’s Dreamweaver is using. This makes it easy for your visitors to
recognize what type of codes you wrote and quickly read through them.
Want to modify the default color scheme? No problem! With a little bit of knowledge about CSS, you can
completely customize the output of the plugin.

Screenshots

  • The configuration page.
  • CSS Code
  • (x)HTML Code
  • JavaScript Code
  • PHP Code

Installation

This section describes how to install the plugin and get it up & running.

Requirements

In order to successfully use this plugin, you will need the following:

  • PHP 5 or higher
  • WordPress 3.2 or higher

Installation Steps

  1. Upload the folder fv-code-highlighter to the /wp-content/plugins/ directory.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.
  3. Choose your preferred settings on the options page: WP Admin > Appearance > Code Highlighter.
  4. Place your code between [code type=codetype] .. code .. [/code] tags to use the highlighter. Replace codetype with the type of code you like to highlight (e.g. php).

Custom Color Scheme

If you like to make some modifications to the default color scheme, all you need is a little
bit of knowledge about CSS. Simply copy the file fv-community-news/public/css/fvch-styles.css
to the root of your current theme directory and start editing.

FAQ

Q: Is there a live example around?
A: My friend Stefan Vervoort over at http://www.divitodesign.com/ is using the plugin for some time now!

Q: Can this plugin be used to highlight code in comments?
A: Yes! Using the [code][/code] tags in comments will work. Even bbPress topics/replies are supported.

Q: I have a great idea for this plugin, could I make a suggestion?
A: Sure you can! Let me know about it at http://www.frank-verhoeven.com/forums/forum/fv-code-highlighter/feature-requests/.

Q: What to do if I found a bug?
A: Please report the bug to me as soon as possible. This way I can solve the problem and make the plugin better for everyone.
Visit the forums at http://www.frank-verhoeven.com/forums/forum/fv-code-highlighter/bug-reports/.

Contributors & Developers

“FV Code Highlighter” is open source software. The following people have contributed to this plugin.

Changelog

For more details on changes, please visit the WordPress Trac.

1.8

  • Added: Code toolbox. (Can be enabled at the options page)
  • Added: Custom code background color selector.
  • Improvement: Various optimizations and bug fixes for the code parser.
  • Improvement: Better support for customizing the highlighting colors.
  • Improvement: Various other fixes and improvements.

1.7.1

  • Fixed problems with the xml highlighter.

1.7

  • Beta release.