The site has been archived and is not updating anymore. Please checkout a new version served at kalnytskyi.com.
[ русский ]

wp-highlight.js

wp-highlight.js screenshot

Warning

This plugin doesn't supported now. But you can easy update highligh.js core by replacing highlight.pack.js in plugin directory. The latest version of highlight.pack.js you can get from official site.

wp-highlight.js is a simple Wordpress plugin for highlight.js library. Highlight.js highlights syntax in code examples on blogs, forums and in fact on any web pages. It's very easy to use because it works automatically: finds blocks of code, detects a language, highlights it.

Source code is available on Github

Features

  • works with comments
  • high performance
  • nice colorshemes

Installation

  1. Upload wp-highlight.js to the /wp-content/plugins/ directory.
  2. Activate the plugin through the «Plugins» menu in WordPress admin page.
  3. Use [code lang="some_lang"]some code[/code] construction for highlighting specified language or [code]some code[/code] for highlighting with language autodetection. You also can use <pre><code> tags instead [code] bb-tag.