Descripcion
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
- Make this plugin universal for any syntax highlighter plugin
Installacion
- Upload plugin folder to the
/wp-content/plugins/
directory - Activate the plugin through the ‘Plugins’ menu in WordPress
- Use new button in TinyMCE panel
Reviews
There are no reviews for this plugin.
Contributors & Developers
“WP-Syntax Button” is open source software. The following people have contributed to this plugin.
ContributorsTranslate “WP-Syntax Button” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.