Plugin Directory


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

  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. Editing a post, use Past'a code button to embed your source code into articles

Ajax compatibility

To enable Pastacode on ajax based websites, it need two steps :

  1. Paste this line into your functions.php theme file : add_filter( 'pastacode_ajax', '__return_true' );
  2. After each change on your DOM, you will have to run this javascript function : Prism.highlightAll();

Requires: 3.1 or higher
Compatible up to: 4.1.5
Last Updated: 2015-1-21
Active Installs: 700+


5 out of 5 stars


Got something to say? Need help?


Not enough data

0 people say it works.
0 people say it's broken.

100,1,1 100,1,1 100,3,3
100,1,1 100,1,1 100,1,1