Version: 3.2 Preserve formatting of code for display by preventing its modification by WordPress and other plugins while retaining original whitespac
Preserve formatting of code for display by preventing its modification by WordPress and other plugins while retaining original whitespace and characters.
NOTE: Use of the visual text editor will pose problems as it can mangle your intent in terms of code tags. I do not offer any support for those who have the visual editor active.
Notes:
Basically, you can just paste code into code, pre, and/or other tags you additionally specify and this plugin will:
Keep these things in mind:
br tags).Example:
A post containing this within code tags:
$wpdb->query("
INSERT INTO $tablepostmeta
(post_id,meta_key,meta_value)
VALUES ('$post_id','link','$extended')
");
Would, with this plugin enabled, look in a browser pretty much how it does above, instead of like:
$wpdb->query(—
INSERT INTO $tablepostmeta
(post_id,meta_key,meta_value)
VALUES ('$post_id','link','$extended')
―);
Links: Plugin Homepage | Plugin Directory Page | Author Homepage
Requires: 3.1 or higher
Compatible up to: 3.3.2
Last Updated: 2011-7-12
Downloads: 13,669
Got something to say? Need help?