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-highlight.js

Description

This 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.

Features:

  • works with comments
  • high performance
  • nice colorshemes

Languages:

1C, ActionScript, Apache, AppleScript, ASCII Doc, AVR Asm, Axapta, Bash,
Brainfuck, Clojure, CMake, CoffeeScript, C++, C#, CSS, D, Delphi, Diff,
Django, DOS, Erlang REPL, Erlang, F#, GLSL, Go, HAML, Handlebars, Haskell,
HTML/XML, HTTP, INI, Java, JavaScript, JSON, Lasso, Lisp, LiveCode Server,
Lua, Makefile, Markdown, MatLab, MEL, Mizar, Nginx, Objective-C, OCaml,
Parser3, Perl, PHP, Python’s profiler, Python, R, RenderMan RIB,
RenderMan RSL, Ruby, Rules, Rust, Scala, SciLab, SCSS, Smalltalk, SQL, TeX,
Vala, VisualBasic .NET, VBscript, VHDL, Oxygene, Mathematica.

Author: Igor Kalnitsky

License

Copyright (c) 2013, Igor Kalnitsky.
All rights reserved.

Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright notice, this
  list of conditions and the following disclaimer.

* Redistributions in binary form must reproduce the above copyright notice, this
  list of conditions and the following disclaimer in the documentation and/or
  other materials provided with the distribution.

* Neither the name of wp-highlight.js nor the names of its contributors may
  be used to endorse or promote products derived from this software without
  specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Installation

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

Contributors & Developers

“wp-highlight.js” is open source software. The following people have contributed to this plugin.

Translate “wp-highlight.js” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

0.3.4

  • Update highlight.js core to Version 8.0
  • New styles and languages.

0.3.3

  • Add Spanish translations.
  • Update highlight.js core.
  • Add new colorschemes.

0.3.2

  • Update highlight.js core to version 7.5.
  • New languages.

0.3.1

  • Fix ‘header already sent’ warning.
  • New colorschemes!

0.3

  • Update highlight.js core.
  • New languages and skins.
  • Change license to BSD

0.2.3

  • Upgrade to highlight.js version 7
  • New languages and skins

0.2.2

  • Move an options page to settings section.
  • Add new languages: HTTP, R, JSON

0.2.1

  • Update highlight.js to 6.2
  • Add new languages: ActionScript, CoffeeScript, D, MatLab
  • Add new themes: monokai and googlecode

0.2

  • Update highlight.js
  • Move settings page to plugin section
  • Add a settings link to plugin page
  • Add an additional css block

0.1.5

  • New languages: Vala, Go
  • Update to highlight.js 6.

0.1.4

  • New three languages: Erlang, Haskell, Objective-C.
  • Improvements in highlight.js library.

0.1.3

  • Update highlight.js core to 5.15 with my vhdl update. Highlight.js 5.15
  • include bugfix with highlighting in IE browser.

0.1.2

  • Update highlight.js core to current dev [with my new version of VHDL]

0.1.1

  • Update highlight.js core to 5.13

0.1.0

  • First release.