Preserve Code Formatting

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:

  • Prevent WordPress from HTML-encoding text (i.e. single- and double-quotes will not become curly; "--" and "---" will not become en dash and em dash, respectively; "..." will not become a horizontal ellipsis, etc)
  • Prevent most other plugins from modifying preserved code
  • Prevent shortcodes from being processed
  • Optionally preserve whitespace (in a variety of methods)
  • Optionally preserve code added in comments

Keep these things in mind:

  • ALL embedded HTML tags and HTML entities will be rendered as text to browsers, appearing exactly as you wrote them (including any br tags).
  • By default this plugin filters 'the_content' (post content), 'the_excerpt' (post excerpt), and 'get_comment_text (comment content)'.

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

KG Inline Code

Replaces any word or sentence between backquotes (`) by a <code> block in a StackOverflow / Markdown way....

Similar: 60%

WP Post Footer

Easily create a library of code snippets that can be inserted at the end of blog posts. Perfect for adding 'Call to Action' content at the end of a blog post to ask readers to take further action. By enabling you to maintain multiple Footer snippets, you will be able to associate different messages .........

Similar: 30%

K2 Hook Up

The K2 theme provides a number of additional hooks into the template. If you’re handy with PHP you can easily add any manner of arbitrary content to these 8 regions. For everyone else, there is K2 Hook Up. This plugin provides an options screen with each unique hook exposed as a simple text box. In.........

Similar: 24%

In The Loop

Be in the loop! Not all plugins provide a way to automatically attach code before or after the post content. Or you might have some other HTML, CSS or JavaScript you’d like to include with every post. Now’s your chance. With In The Loop you can easily add any code you like to your posts and pages, .........

Similar: 22%

QF-GetThumb

QF-GetThumb is plugin to make the thumbnail and the cache of first image data in the content and the argument source.This plugin can make JPEG, GIF, a format of PNG, And makes the image of not only a local server but also the outside link a thumbnail and can become cache. Outside RSS can be read dep.........

Similar: 10%

QF-GetThumb-wb

This plugin branched from version 1.1.3 of QF-GetThumb. Added function and change configuration screen. Thank you Q.F. and QF-GetThumb. QF-GetThumb-wb is plugin to make the thumbnail and the cache of first image data in the content and the argument source.This plugin can make JPEG, GIF, a format of.........

Similar: 10%

Javascript HTML Text Adder

Javascript Html Text Adder allows to insert javascripts, HTML, Text, Shortcodes, advertisements, flash embed codes, plain text etc in the sidebar via UNLIMITED widgets with advanced targeting on posts and pages....

Similar: 9%

HTML Javascript Adder

HTML Javascript Adder allows to insert HTML, javascripts, shortcodes, advertisements, flash embed codes, plain text etc in the sidebar via UNLIMITED widgets with advanced targeting on posts and pages. ...

Similar: 9%

Display posts in grid layout without coding - Content Views

Do you want to display most recent posts on any WordPress page in responsive, customizable Grid layout? Or: display posts by any category, tag, author, keyword display posts in order of title, date, ID display posts with nice pagination display thumbnail in different size than 150x150 or 300x300 .........

Similar: 8%

Ads Manager WP/BB

Use this plugin to quickly and easily insert Any Ad code Unit to your posts and BuddyPress sections including Forum topics....

Similar: 2%