WordPress plugin intelligence profile

WPygments

Server side syntax highlighter based on Pygments highlighter software.

WP PlugIndex snapshot

Current directory snapshot

Tested up to WordPress 3.7
Current version1.1.2
WordPress coverageTested up to WordPress 3.7
Minimum stackWP 3.3 · PHP —
Directory statusactive
Last directory update27 Mar 201412y ago
Active installations10Adoption metric — not a quality score
WordPress.org rating5.0 / 5 from 3 ratings
Official packageDirect from WordPress.org

Repository metrics are context, not quality scores. Active installations measure adoption and can strongly reflect a plugin’s age and historical popularity. Ratings, recent updates and “Tested up to” metadata also do not guarantee modern code, error-free operation, security, feature completeness or suitability for a particular site. Why active installs don’t tell the whole story →

WP PlugIndex currently records WPygments version 1.1.2 as active, updated 12y ago and tested up to WordPress 3.7.

Overview

About this plugin

Server side syntax highlighter based on Pygments highlighter software.

Installation:

To use this plugin you need pygments in your server:

sudo apt-get install python-setuptools easy_install Pygments

That’s all. Now you can download the plugin and install it in your WordPress.

Usage

Once you get installed the plugin the usage is straightforward. just enclose your code between tokens named with the corresponding lang:

[/php]

See “Languages and filetypes supported” section to know available languages.

Parameters

Tokens support a few parameters (all optionals):

[/php]

style="manni" defines code styling. <br>

Default styling is default wich is very nice, but maybe you like other styles. see “Color styles” section.

If you set “linenumbers” to inline or table, the line numbers will be added as independent table column or as part of the line.

Examples

`

[javascript]

//comment line

var foo = “foo”;

var bar = function(){

var baz;

}

[/javascript]

`

Outputs highlighted js with default style, and no line numbers.

`

[javascript style=”monokai” linenumbers=”inline”]

//comment line

var foo = “foo”;

var bar = function(){

var baz;

}

[/javascript]

`

Outputs highlighted js with monokai style with line numbers (as part of the line).

`

[javascript style=”monokai” linenumbers=”table”]

//comment line

var foo = “foo”;

var bar = function(){

var baz;

}

[/javascript]

`

Outputs highlighted js with monokai style with line numbers (as new column).

Color styles

These are supported color styles:

  • monokai
  • manni
  • rrt
  • perldoc
  • borland
  • colorful
  • default
  • murphy
  • vs
  • trac
  • tango
  • fruity
  • autumn
  • bw
  • emacs
  • vim
  • pastie
  • friendly
  • native

Languages and filetypes supported

Pygments not only highlights languages. conf), etc.

NOTE: to use see “Usage” section

important sdsd;

General

  • apacheconf: (.htaccess, apache.conf, apache2.conf)
  • bash, sh, ksh:

bashrc, bashrc)

  • ini, cfg: (*.ini, *.cfg)
  • makefile:

, GNUmakefile)

  • nginx:

Nginx configuration file

  • yaml:

yml)

  • perl:

pm)

  • vb.net:

bas)

  • console:

sh-session)

Javascript

  • javascript: Pure Javascript
  • coffeescript: Pure CoffeeScript
  • json: Pure JSON

PHP

  • cssphp: PHP embedded in CSS
  • htmlphp: PHP embedded in HTML
  • jsphp: PHP embedded in JS
  • php: Pure PHP
  • xmlphp: PHP embedded in XML

Ruby

  • ruby, duby: Ruby (*.rb, *.rbw, *.rake, *.gemspec, *.rbx, *.duby)
  • csserb, cssruby: Ruby embedded in CSS
  • xmlerb, xmlruby: Ruby embedded in XML

CSS and CSS compilers

  • css:

css)

  • sass:

sass)

  • scss:

scss)

HTML and HTML template systems

  • html:

xslt)

  • haml:

haml)

  • jade:

jade)

SQL

  • sql:

sql)

  • sqlite3:

sqlite3-console)

  • mysql:

MySQL

Python, jinja & Django

  • python: Pure Python
  • python3: Pure Python 3
  • xmldjango, xmljinja: Django/Jinja embedded in XML
  • cssdjango, cssjinja: Django/Jinja embedded in CSS
  • django, jinja: Pure Django/Jinja
  • htmldjango, htmljinja: Django/Jinja embedded in HTML
  • jsdjango, jsjinja: Django/Jinja embedded in Javascript

Java && family

  • java:

java)

  • clojure:

clj)

  • groovy:

groovy)

  • jsp:

jsp)

C, C++, Objetive-c, C Sharp

  • cobjdump: c-objdump (*.c-objdump)
  • c: C (*.c, *.h, *.idc)
  • cpp: C++ (*.cpp, *.hpp, *.c++, *.h++, *.cc, *.hh, *.cxx, *.hxx)
  • csharp: C# (*.cs)
  • objectivec: (*.m)

XML

  • xml: (*.xml, *.xsl, *.rss, *.xslt, *.xsd, *.wsdl)
  • xslt: (*.xsl, *.xslt)
WordPress.org metadata

Plugin tags

Topics listed for this plugin in the WordPress.org directory.

  • syntax highlight
Compatibility & maintenance

Compatibility & maintenance

Tested up to WordPress 3.7

Not yet marked as tested with WordPress 7.1. WordPress.org currently lists Tested up to 3.7.

Current WordPress releaseWordPress 7.1
WordPress.org Tested up to3.7
Minimum requirementsWordPress 3.3 · PHP not listed
Update activity27 Mar 201412y ago

“Tested up to” is directory metadata supplied by the plugin author. WP PlugIndex does not turn an older declaration into a claim that the plugin is incompatible.

Changes recorded by WP PlugIndex

Recent tracked changes

No tracked version or compatibility changes have been recorded by WP PlugIndex yet.

Tracking & source

WP PlugIndex tracks public WordPress.org directory metadata and records selected version, compatibility and availability changes as they are detected.

Plugin watchlist

Watch this plugin

Sign in to your WP PlugIndex account or create a free account. Free accounts can watch up to 5 plugins and see what changed.

Watch limit

Watchlist limit reached

You have reached your current active watch limit.