WordPress.org

Plugin Directory

Test out the new Plugin Directory and let us know what you think.

Pastacode

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

1.7

  • 19 august 2016
  • Pastacode now compatible with bbPress

1.6

  • 27 mai 2016
  • CodeMirror is now used for editing manual code on backend
  • manual shortcode improvements (this version will converts old « manual code » shortcodes to new ones. You’re invited to save your database before upgrade). This solves problem reported by users with new lines feeds.
  • support Bitbucket snippets as a provider
  • line-numbers css improvements
  • fix bug with empty lines at the end of a snippet.

1.5.1

  • 24 july 2015
  • fix bug of code wrapper not removed (support)[https://wordpress.org/support/topic/not-removed]

1.5

  • 23 july 2015
  • API views implementation.
  • fix bug when creating new shortcodes (persistent values)

1.4.2

  • 21 january 2015
  • can target a specific file inside a gist
  • remove prismJS plugin demo file (index.html, inside the plugin rep)

1.4.1

1.4

  • 16 january 2015
  • New feature: you can now edit your manual code into a full screen window
  • update prism.js and prism plugins
  • New option for display code description above or below code

1.3

  • 5 may 2014
  • TinyMCE Editor support improvment (visual placeholder on editor mode, new tinyMCE button...)
  • Github API restriction fallback (support now more than 30 requests / hour)
  • New ajax compatibility (using hook pastacode_ajax)
  • Fix bug: No more disgracefull linebreaks on code view.

1.2.1

  • 21 nov 2013
  • Fix bug: when manual provider is selected, no cache.

1.2

  • 15 oct 2013
  • The modification of the cache duration do not purge cache anymore
  • New button "Purge Cache" in option page, use it to delete all transients (they contains the responded source codes)
  • Fix bug when updating option

1.1

  • 12 oct 2013
  • Hooks, hooks and hooks.
  • Update shortcode format ("type" became "provider", and add "/" before the closing tag)

1.0

  • 10 oct 2013
  • Initial release
  • Insert codes using a nice lightbox
  • Import codes from file, Github, Gist, Pastebin or BitBucket
  • 13 languages available
  • 6 color schemes
  • Cache support for webservices (default duration: 1 week)

Requires: 3.1 or higher
Compatible up to: 4.6.1
Last Updated: 3 months ago
Active Installs: 1,000+

Ratings

4.9 out of 5 stars

Support

0 of 1 support threads in the last two months have been marked resolved.

Got something to say? Need help?

Compatibility

+
=
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 100,1,1
100,1,1
100,1,1 100,1,1
0,1,0
100,1,1