>
Download This Plugin | |
Download Elegant Themes | |
Name | Preserve Code Formatting |
Version | 3.6 |
Author | Scott Reilly |
Rating | 0 |
Last updated | 2015-02-25 07:07:00 |
Downloads |
18409
|
Download Plugins Speed Test plugin for Wordpress |
Home page PageSpeed score has been degraded by 0%, while Post page PageSpeed score has been degraded by 0%
Preserve Code Formatting plugin added 6 bytes of resources to the Home page and 5 bytes of resources to the sample Post page.
Preserve Code Formatting plugin added 0 new host(s) to the Home page and 0 new host(s) to the sample Post page.
Great! Preserve Code Formatting plugin ads no tables to your Wordpress blog database.This plugin preserves formatting of code for display by preventing its modification by WordPress and other plugins while also retaining whitespace.
NOTE: Use of the visual text editor will pose problems as it can mangle your intent in terms of code
tags. I strongly suggest you not use the visual editor in conjunction with this plugin as I have taken no effort to make the two compatible.
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