🔥 Black Friday Sale: Get 65% OFF Any PageForge Pro Plan! Use code BF65 Claim Offer →
Account Get it free
Pastacode icon
Maintained Tested up to 6.9.12

Pastacode

Use Pastacode to add code into your posts with the awesome PrismJs coloration library. So, past'a code!

Active installs400+100+ tier
Downloads · 30d293▲ +42.2% vs prev. 30d
Rating4.9/514 reviews
Health score54/100Fair
All-time downloads26.1KSince Oct 2013
Support resolved—No recent threads
RequiresWP 4.0PHP 7.0+
Downloads · 7d78▼ -17% week over week
Our verdict

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 & support

Daily downloads

71421Sep 4Oct 18Dec 2
Yesterday22
Daily average (1y)4
Peak day29Nov 22, 2026
Last 12 months1.4K

Download spikes usually follow a new release — each site that auto-updates counts as a download.

Rankings

Where Pastacode stands today

WordPress.org search rankings

Live position in the plugin search, top 100
KeywordPositionCompeting pluginsCategory
block >100 10,000 Best block plugins →
code >100 10,000 Best code plugins →
Github >100 7,421 Best Github plugins →
sourcecode #3 46 Best sourcecode plugins →
syntax #70 2,362 Best syntax plugins →

Version adoption

Share of active sites per release.

  • 3.082.4%
  • 2.112.8%
  • 2.04.9%

Rating breakdown

★★★★★★★★★★ 4.9 from 14 reviews

  • 5★92.9%
  • 4★7.1%
  • 3★0.00%
  • 2★0.00%
  • 1★0.00%

About Pastacode

From the official readme · v3.0.1

Description

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

  1. Unzip Pastacode into your plugin folder
  2. Go to Pastacode settings, and configure your color scheme and cache expiration
  3. Host your snippets on repositories (or localy)
  4. 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

Full changelog on WordPress.org →

Screenshots

Edit your code with the Pastacode block
Edit your code with the Pastacode block
How it's renderer in editor (highlighted by Prism)
How it's renderer in editor (highlighted by Prism)
You can import a snippets hosted on many providers (gitlab, github…)
You can import a snippets hosted on many providers (gitlab, github…)
If you don't use block editor, you can use another UI, base on a tinyMCE plugin (work in the classic block, or with classic editor)
If you don't use block editor, you can use another UI, base on a tinyMCE plugin (work in…
Here the Treeview lang, to share directory structure
Here the Treeview lang, to share directory structure

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.

Active installs badge Rating badge Health score badge

Best Pastacode alternatives

All block plugins →
Alternatives
Rank Plugin Active installs Rating Updated Health
1 Spectra Legacy – Gutenberg Blocks Spectra Legacy – Gutenberg Blocks Gutenberg blocks for existing Spectra websites. Maintained, stable, and fully supported —… by Brainstorm Force 1M+ ★★★★★★★★★★ 4.7 (1.9K) 2 weeks ago 85
2 Breadcrumb NavXT Breadcrumb NavXT Adds breadcrumb navigation showing the visitor's path to their current location. by John Havlik 700K+ ★★★★★★★★★★ 4.6 (132) 3 months ago 71
3 PDF Embedder – PDF Viewer & Embed PDF Files for WordPress PDF Embedder – PDF Viewer & Embed PDF Files for WordPress Embed PDF files in WordPress posts and pages with a responsive PDF viewer block, live Block… by Syed Balkhi 300K+ ★★★★★★★★★★ 4.7 (533) 4 months ago 86
4 Layout Grid Block Layout Grid Block A Gutenberg container block to let you align items consistently across a global grid. by Automattic 200K+ ★★★★★★★★★★ 4.7 (13) 3 years ago 43
5 Crowdsignal Forms Crowdsignal Forms The Crowdsignal Forms plugin allows you to create and manage polls right from within the… by Automattic 200K+ ★★★★★★★★★★ 5 (3) 2 months ago 73
6 Content Views – Post Grid & Filter (Shortcode, Blocks, Elementor Widgets) Content Views Easy to show posts, pages, custom posts in customizable grid, list, slider, accordion… by Content Views 100K+ ★★★★★★★★★★ 4.8 (333) 2 weeks ago 80
7 Email Address Encoder Email Address Encoder A lightweight plugin that protects email addresses from email-harvesting robots, by… by Till Krüss 100K+ ★★★★★★★★★★ 4.2 (160) 7 days ago 85
8 Simple Sitemap – Responsive HTML Sitemap for WordPress Simple Sitemap – Responsive HTML Sitemap for WordPress Build a responsive HTML sitemap in the block editor with live preview, flexible sorting… by David Gwyer 60K+ ★★★★★★★★★★ 3.9 (72) 2 months ago 86
9 Flexible Table Block Flexible Table Block Flexible Table Block is a custom block plugin for the WordPress block editor that allows… by Aki Hamano 40K+ ★★★★★★★★★★ 4.9 (34) 3 weeks ago 95
10 The Icon Block The Icon Block Easily add SVG icons and graphics to the WordPress block editor. by Nick Diego 40K+ ★★★★★★★★★★ 5 (30) 3 months ago 91

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

↑↓ to move↵ to open