Preserve Code Formatting
v5.0by Scott Reilly · updated 1 year ago
Preserve formatting of code for display by preventing its modification by WordPress and other plugins while also retaining whitespace.
- Rank
- #9,519
- Up7 vs yesterday
- Active installs (est.)
- ≈ 445
- 400+ reported · High
- Total downloads
- 50.2K
- 50,160 all-time
- Rating
- 4.7/5
- 3 reviews
- Support resolved
- –
- 0 of 0 threads, last 2 months
Preserve Code Formatting at a glance
Preserve Code Formatting is a WordPress plugin by Scott Reilly with 400+ active installs, the #9,519 most popular plugin on WordPress.org. On a typical day it’s downloaded about 9 times, 8% more than the month before. It’s rated 4.7 out of 5 from 3 reviews. Version 5.0 came out on Aug 15, 2025, more than a year ago. It is tested up to WordPress 6.8.12. It leads the 8 plugins tagged “escape”. It was first released in 2005.
Chart time range
Applies to every chart below. History from Oct 9, 2026, 31 days.
Downloads over time
Download stats202 downloads · the last 30 days
View as table
| Date | Preserve Code Formatting |
|---|---|
| Nov 3, 2026 | 7 |
| Nov 2, 2026 | 14 |
| Nov 1, 2026 | 11 |
| Oct 31, 2026 | 7 |
| Oct 30, 2026 | 5 |
| Oct 29, 2026 | 8 |
| Oct 28, 2026 | 11 |
| Oct 27, 2026 | 7 |
| Oct 26, 2026 | 9 |
| Oct 25, 2026 | 9 |
| Oct 24, 2026 | 9 |
| Oct 23, 2026 | 7 |
| Oct 22, 2026 | 6 |
| Oct 21, 2026 | 10 |
| Oct 20, 2026 | 2 |
| Oct 19, 2026 | 12 |
| Oct 18, 2026 | 6 |
| Oct 17, 2026 | 4 |
| Oct 16, 2026 | 7 |
| Oct 15, 2026 | 8 |
| Oct 14, 2026 | 8 |
| Oct 13, 2026 | 10 |
| Oct 12, 2026 | 7 |
| Oct 11, 2026 | 4 |
| Oct 10, 2026 | 9 |
| Oct 9, 2026 | 5 |
Unusual spikes are usually updates, not new installs.
Estimated installs
≈ 445 · -1.1% in the last 30 days
View as table
| Date | Estimated installs |
|---|---|
| Nov 8, 2026 | 445 |
| Nov 7, 2026 | 444 |
| Nov 5, 2026 | 441 |
| Nov 4, 2026 | 440 |
| Nov 3, 2026 | 442 |
| Nov 2, 2026 | 442 |
| Nov 1, 2026 | 441 |
| Oct 31, 2026 | 440 |
| Oct 30, 2026 | 441 |
| Oct 29, 2026 | 442 |
| Oct 28, 2026 | 441 |
| Oct 27, 2026 | 450 |
Rank over time
#9,519 · up 60 in the last 30 days
View as table
| Date | Daily snapshot |
|---|---|
| Nov 8, 2026 | #9,519 |
| Nov 7, 2026 | #9,526 |
| Nov 6, 2026 | #9,559 |
| Nov 5, 2026 | #9,547 |
| Nov 4, 2026 | #9,566 |
| Nov 3, 2026 | #9,550 |
| Nov 2, 2026 | #9,534 |
| Nov 1, 2026 | #9,557 |
| Oct 31, 2026 | #9,574 |
| Oct 30, 2026 | #9,563 |
| Oct 29, 2026 | #9,561 |
| Oct 28, 2026 | #9,587 |
| Oct 27, 2026 | #9,579 |
Growth %
Average -0.09% a day in the last 30 days
View as table
| Date | Growth |
|---|---|
| Nov 8, 2026 | +0.23% |
| Nov 7, 2026 | +0.34% |
| Nov 5, 2026 | +0.23% |
| Nov 4, 2026 | -0.45% |
| Nov 3, 2026 | 0.00% |
| Nov 2, 2026 | +0.23% |
| Nov 1, 2026 | +0.23% |
| Oct 31, 2026 | -0.23% |
| Oct 30, 2026 | -0.23% |
| Oct 29, 2026 | +0.23% |
| Oct 28, 2026 | -2.00% |
Active installs band
400+ on WordPress.org
View as table
| Date | Daily snapshot |
|---|---|
| Nov 8, 2026 | 400+ |
| Nov 7, 2026 | 400+ |
| Nov 6, 2026 | 400+ |
| Nov 5, 2026 | 400+ |
| Nov 4, 2026 | 400+ |
| Nov 3, 2026 | 400+ |
| Nov 2, 2026 | 400+ |
| Nov 1, 2026 | 400+ |
| Oct 31, 2026 | 400+ |
| Oct 30, 2026 | 400+ |
| Oct 29, 2026 | 400+ |
| Oct 28, 2026 | 400+ |
| Oct 27, 2026 | 400+ |
Search rankings
Where it appears in WordPress.org search for the searches you track, checked every day.
See where Preserve Code Formatting ranks in search
Track this plugin to check its position for the searches you choose, daily, with an alert when it moves.
Change log
From our daily snapshot of WordPress.org- Rank #9587 → #9547
- Tested up to 6.8.11 → 6.8.12
Versions in use
Share of active installs on each published version, from WordPress.org.
- v5.063%
- v4.020%
- v3.77.9%
- v3.97.2%
- Other2.5%
Rating trend
4.7★★★★★3 reviews · steady in the last 30 days
Requirements & info
Version history- Version
- 5.0
- Requires WordPress
- 5.5
- Tested up to
- 6.8.12
- Requires PHP
- –
- First released
- Apr 14, 2005
- Last updated
- Aug 15, 2025
- Releases, last 12 months
- …
Questions about Preserve Code Formatting
How many websites use Preserve Code Formatting?
Preserve Code Formatting is active on 400+ WordPress sites, as WordPress.org reports it. WordPress.org rounds the number down, so the real count is somewhat higher. That makes it the #9,519 most popular plugin on WordPress.org.
How many times has Preserve Code Formatting been downloaded?
50,160 times in total since 2005. On a typical day it’s downloaded about 9 times. See download stats
When was Preserve Code Formatting last updated?
Version 5.0 came out on Aug 15, 2025 (1 year ago).
Is Preserve Code Formatting compatible with the latest WordPress?
Preserve Code Formatting’s readme says it’s tested up to WordPress 6.8.12, while the current version is 7.1. That doesn’t mean it breaks, but its author hasn’t confirmed it works with the latest releases.
Is Preserve Code Formatting still maintained?
Its last release was 1 year ago, so it may no longer be actively maintained. No support threads were opened in the last two months.
What rating does Preserve Code Formatting have?
4.7 out of 5 from 3 reviews on WordPress.org.
What are the best alternatives to Preserve Code Formatting?
The plugins most like Preserve Code Formatting, by the tags they share, are WPCode (3M+), Code Snippets (1M+) and Head & Footer Code (100K+). Compare all alternatives
Latest reviews
Analyze reviewsReview stats
4.7
★★★★★
3 reviews
- 5 stars: 2 reviews, 67%
- 4 stars: 1 reviews, 33%
- 3 stars: 0 reviews, 0%
- 2 stars: 0 reviews, 0%
- 1 stars: 0 reviews, 0%
- Positive
- 100%4–5★
- Mixed
- 0%3★
- Critical
- 0%1–2★
- About 1 more 5★ reviews would lift it to 4.8.
- Each new 1★ review takes 11 five-star reviews to balance out.
Compare with competitors
Add up to 1 competitor. No account needed.
| Metric | |
|---|---|
| Estimated installs | ≈ 445 |
| Reported installs | 400+ |
| Rating | 4.7 |
| Reviews | 3 |
| Total downloads | 50.2K |
| Author | Scott Reilly |
| First released | Apr 14, 2005 |
| Version | 5.0 |
| Requires WP | 5.5 |
| Requires PHP | – |
| Last updated | Aug 15, 2025 |
Alternatives to Preserve Code Formatting
Compare all alternativesPopular plugins with the same tags, the most in common first.

WPCode
by Syed Balkhi
Easily add code snippets in WordPress. Insert header & footer scripts, add PHP code snippets with conditional logic, insert ads pixel code, and more.
- Rank
- #19
- Installs
- 3M+
- 4.9
Code Snippets
by Code Snippets Pro
Manage custom WordPress code in one dashboard. Create PHP and HTML snippets, preview code, track snippet totals and reuse code across sites.
- Rank
- #31
- Installs
- 1M+
- 4.7
Head & Footer Code
by Aleksandar Urošević
Easy add site-wide, category and article specific custom code before the closing </head> and </body>, or after opening <body> tag.
- Rank
- #305
- Installs
- 100K+
- 5.0

Code Block Pro
by Kevin Batdorf
Code highlighting powered by the VS Code engine. Performance focused. No bloat.
- Rank
- #2,141
- Installs
- 10K+
- 4.8

Highlighting Code Block
by LOOS
Add code block with syntax highlighting using prism.js. (Available for Gutenberg and Classic Editor)
- Rank
- #1,712
- Installs
- 10K+
- 4.5
Advance Custom HTML
by bPlugins
Display HTML, CSS, JavaScript, PHP & Python code snippets in WordPress with live preview, syntax highlighting and a copy button.
- Rank
- #1,678
- Installs
- 10K+
- 2.5
Side by side:Preserve Code Formatting vs WPCodePreserve Code Formatting vs Code SnippetsPreserve Code Formatting vs Head & Footer Code
More by Scott Reilly
See everything by Scott ReillyOther plugins from this author in our catalog.

Disable Search
by Scott Reilly
Disable the built-in front-end search capabilities of WordPress.
- Rank
- #920
- Installs
- 30K+
- 4.7

Add Admin CSS
by Scott Reilly
Easily define additional CSS (inline and/or by URL) to be added to all administration pages.
- Rank
- #1,876
- Installs
- 10K+
- 4.9

Allow Multiple Accounts
by Scott Reilly
Allow multiple user accounts to be created, registered, and updated having the same email address.
- Rank
- #2,227
- Installs
- 9K+
- 5.0

Configure SMTP
by Scott Reilly
Configure SMTP mailing in WordPress, including support for sending email via SSL/TLS (such as Gmail).
- Rank
- #2,889
- Installs
- 6K+
- 4.9

One Click Close Comments
by Scott Reilly
Conveniently close or open comments for a post or page with one click from the admin listing of posts.
- Rank
- #3,192
- Installs
- 5K+
- 4.9

Remember Me Controls
by Scott Reilly
Have "Remember Me" checked by default on the login page and configure how long a login is remembered. Or disable the feature altogether.
- Rank
- #3,572
- Installs
- 4K+
- 4.3