WordPress plugin intelligence profile

SyHi

Minimalistic Syntax Highlighter plug-in which also makes sure code can still be copied and pasted into your favourite compiler!

WP PlugIndex snapshot

Current directory snapshot

Tested up to WordPress 3.0
Current version0.0.4
WordPress coverageTested up to WordPress 3.0
Minimum stackWP 2.8.5 · PHP —
Directory statusactive
Last directory update18 Nov 201015y ago
Active installations10Adoption metric — not a quality score
WordPress.org ratingNo WordPress.org ratings yet
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 SyHi version 0.0.4 as active, updated 15y ago and tested up to WordPress 3.0.

Overview

About this plugin

This plug-in is totally designed for developers.

You know, that sort of people who post code snippets in their blog regularly and hardly use the Visual Editor,

because they write the HTML themselves. But they don’t like WordPress messing with their quotes and dashes,

so this plug-in makes sure no one touches one of their lovingly crafted lines of code.

It’s also very minimalistic – less than 10k, not counting the GeSHi syntax highlighting library which is also included.

In addition, it’s also lazy. It will try to avoid doing as much work as possible.

That is good, because it will not eat resources like other plug-ins out there.

Usage

Whenever you want to post some syntax highlighted code, surround it with <code lang="language"></code>. That’s it.

Example:

<code lang="php"> class HelloWorld() { public function __construct() { echo "This is an unnecessarily long version of Hello World"; } } </code>

The ‘lang’ attribute can be entirely omitted. You will get whitespace, quotes and dashes preservation… but no highlighting.

Uninstall

Just deactivate the plug-in, and remove its folder from the wp-content/plugins directory.

Thanks

Big thanks to the creators of the GeSHi library. Without it, the output of this plug-in would be very boring.

com/highlighter/

The following plug-ins were invaluable sources of inspiration and how-to-do-it-right:

  • Preserve Code Formatting, by Scott Reilly (http://coffee2code.com)
  • Code Snippet, by Roman Roan. Now maintained by Wyatt Neal (http://blog.hackerforhire.org/code-snippet/)

You could say this plug-in is the sum of the essence of both plug-ins.

WordPress.org metadata

Plugin tags

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

  • code
  • highlight
  • preformatting
  • syntax
  • whitespace
Compatibility & maintenance

Compatibility & maintenance

Tested up to WordPress 3.0

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

Current WordPress releaseWordPress 7.1
WordPress.org Tested up to3.0
Minimum requirementsWordPress 2.8.5 · PHP not listed
Update activity18 Nov 201015y 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.