- Listing audit
- 46/100
Preserve Code Formatting is a WordPress Plugin Directory app by Scott Reilly. With a rating of 4.7★ from 3 reviews.
Preserve Code Formatting is a WordPress app, with a 4.7 average rating from 3 reviews, as of Sep 11, 2026.
AppRanks verdict
Generated from marketplace data as of Sep 11, 2026
Preserve Code Formatting is a WordPress app. It holds a 4.7★ average from 3 reviews on WordPress.
Pros
- No standout positives in the measured data.
Cons
- −Only 3 reviews — the average can still move with a few new ratings
How Preserve Code Formatting works
Show full descriptionShow less
This plugin preserves formatting of code for display by preventing its modification by WordPress and other plugins while also retaining whitespace.
NOTE: This plugin does NOT handle posts containing blocks. For such posts, use the built-in code or preformatted blocks to format your code for display. However, this plugin would still be needed if you have text-based posts from before using the blocks-based editor.
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)’.