Pastacode
Use Pastacode to add code into your posts with the awesome PrismJs coloration library. So, past'a code!
Use with caution
Pastacode works, but test it on a staging site before relying on it in 2026. It runs on 400+ sites, is rated 4.9/5 and was last updated 9 months ago, and scores 54/100 on our health check.
- Small user base (400+ active installs)
- Only tested up to WordPress 6.9 (latest is 7.1)
How does it stack up?
Side-by-side on installs, updates, ratings & supportDaily downloads
Download spikes usually follow a new release — each site that auto-updates counts as a download.
Rankings
Where Pastacode stands todayWordPress.org search rankings
Live position in the plugin search, top 100| Keyword | Position |
|---|---|
| block | >100 |
| code | >100 |
| Github | >100 |
| sourcecode | #3 |
| syntax | #70 |
Version adoption
Share of active sites per release.
Rating breakdown
★★★★★★★★★★ 4.9 from 14 reviews
About Pastacode
From the official readme · v3.0.1Description
With Pastacode, you can easily add code into your posts with the awesome PrismJs coloration library.
You can insert source code into the post editor, wrinting it directly in the editor (using a gutenberg bloc or classic editor), from a file, or from webservices like GitHub, Gitlab, Gist, Pastebin, BitBucket or BitBucket snippets. Webservices responses are cached in order to avoid too many HTTP requests.
It also work in comments and bbPress topics and replies.
Don’t worry about posts updates while upgrading codes!
Pastacode allows to enhance your snippets using PrismJs plugins (highlightning lines, link functions…).
Third Party
Pastacode use some third party components
Installation
- Unzip Pastacode into your plugin folder
- Go to Pastacode settings, and configure your color scheme and cache expiration
- Host your snippets on repositories (or localy)
- To use:
- With the block editor, use the Pastacode block
- With classic-editor, use Past’a code button to embed your source code into articles
Changelog
3.0.1
- 24 november 2022
- Fix: improve compatibility with html minifier, where line breaks are stripped from codes snippets
- Fix: bug with apachconf language in legacy mod (shortcode)
- Thanks to WP marmite for notifying me these bugs
3.0
- 15 november 2022
- Gutenberg support! 🎉 Use the new shinny block to write/insert your code snippets
- Migrate automatically from the old shortcode to Gutenberg
- Support legacy if you use classic editor or classic block
2.1
- 9 august 2019
- fix issue with bitbucket api 1.0 depreciation
- gutenberg compatibility is coming soon . . .
2.0
- 15 december 2016
- compatibility with WordPress comments
- normalize withespace in PrismJs
- hide empty titles in manual snippets
- codemirror editing improvments
- hdpi icons
- TinyMCE smartphone compatibility
- PrismJS stylesheets and TinyMCE improvments
- new method to retrieve GitHub snippets (without base 64 encryption)
- fancy new website for demos
- fix: resolve bug while old shortcode conversion
- fix: conflict between manual code and
%
1.8
- 22 august 2016
- Pastacode preview mode on tinyMCE views
1.7
- 19 august 2016
- Pastacode now compatible with bbPress
Screenshots
For developers
Is this your plugin? Show off the numbers.
Add a live badge to your site, docs or GitHub README. It updates on its own — no account needed.
Best Pastacode alternatives
All block plugins →FAQ
Pastacode: quick answers
Straight answers, pulled from live WordPress.org data.
Source: WordPress.org
Is Pastacode free?
Yes. Pastacode is free to download and use from the official WordPress.org plugin directory.
Is Pastacode safe to use in 2026?
Pastacode works, but test it on a staging site before relying on it in 2026. It runs on 400+ sites, is rated 4.9/5 and was last updated 9 months ago, and scores 54/100 on our health check.
How many websites use Pastacode?
Pastacode is active on 400+ WordPress websites and has been downloaded 26,142 times since it launched in October 2013. It was downloaded 293 times in the last 30 days.
Does Pastacode work with WordPress 7.1?
Pastacode is officially tested up to WordPress 6.9.12, while the latest release is 7.1.5. It may still work, but try it on a staging site first.
What PHP version does Pastacode need?
Pastacode requires PHP 7.0 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.
When was Pastacode last updated?
The latest version, 3.0.1, was released on March 12, 2026 (9 months ago).
Who makes Pastacode?
Pastacode is developed and maintained by Willy Bahuaud.
What are the best alternatives to Pastacode?
The most popular alternatives to Pastacode are Spectra Legacy (1M+ installs), Breadcrumb NavXT (700K+ installs) and PDF Embedder (300K+ installs).
Powered by PageForge
One template and a spreadsheet. A real page for every search.
PageForge turns each row of a CSV into a WordPress page with its own title, URL, SEO fields and schema, built on the layout you already designed. Free on WordPress.org.
- CSV and XLSX, plus Google Sheets on Professional and Enterprise
- Its own title, URL, SEO fields and schema for every page
- Works with the block editor, Elementor, Divi and Avada
- Free on WordPress.org, no credit card
