Pastacode Wordpress Plugin - Rating, Reviews, Demo & Download
Plugin 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
- PrismJS – by Lea Verou, Golmote, James DiGioia, Michael Schmidt & other contributors
- WordPress create-block
- CodeMirror 6
- CodeMirror6 Component for React
- He.js – by Mathias Bynens
Screenshots
-
Edit your code with the Pastacode block
-
How it’s renderer in editor (highlighted by Prism)
-
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)
-
Here the Treeview lang, to share directory structure