WP-Syntax Button

This plugin is based on Nick Remeslennikov’s CodeColorer TinyMCE Button, which I have only modified to work with WP-Syntax.

Author:Olivier Cecillon (profile at wordpress.org)
WordPress version required:2.7
WordPress version tested:2.8
Plugin version:0.1
Added to WordPress repository:29-04-2009
Last updated:18-06-2009
Warning! This plugin has not 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.
Rating, %:0
Rated by:0
Plugin URI:http://www.blogoolic.fr/wp-syntax-button
Total downloads:6 876
Active installs:100+
plugin download
Click to start download

This plugin is designed to work with WP-Syntax (https://wordpress.org/extend/plugins/wp-syntax/).
It is in fact a copy/paste of CodeColorer TinyMCE Button adapted for wp-syntax, but it takes in consideration that wp-syntax allows you to specify the first line number.

This plugin also corrects a disagreement when switching editor mode. When you use wp-syntax you have to write in HTML editor since line argument is removed by Visual Editor… This is no longer the case.

Note that now, you “must” write your code in Visual Editor : the plugin automatically adds escaped="true" to <pre> tag. If you write your code in HTML editor, you have to encode HTML entities.

TODO

  1. Make this plugin universal for any syntax highlighter plugin