Use Pastacode to add code into your posts with the awesome PrismJs coloration library. So, past'a code!
As of April 2026, Pastacode is a WordPress code plugin with 500 active installations and a 4.9/5 rating from 14 reviews. It has been downloaded 25K+ times in total. Requires WordPress 4.0+ and PHP 7.0+. Available on WordPress.org since 2013. Actively maintained — updated within the last month. Top alternative: WPCode – Insert Headers and Footers +….
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…).
Pastacode use some third party components
| WordPress | 4.0+ requiredTested up to 6.9.4 |
| PHP | 7.0+ required |
Plugin data sourced from WordPress.org. Analysis and metrics by PluginSift.