Banner for Pastacode
Use Pastacode to add code into your posts with the awesome PrismJs coloration library. So, past'a code! Wordpress Tutorial
Noted That:
  • To install correctly this pastacode.zip .
  • Fisrt Download the pastacode.zip to your computer
  • Extract/Open pastacode.zip to Your Computer.
  • Then, Find readme.txt file inside pastacode.zip and Open readme.txt .
  • Now, Read the Requirements of this plugin. Which Wordpress Version and PHP Version are required to run this Plugin in Your Wordpress Site.
  • Then, Follow the Tips Below.
Start the Tips:

Step-1 : Download " pastacode.zip " to Your Local Computer.

Step-2 : Then, Login to your " yourdomain.com/wp-admin " Dashboard.

Login to Wordpress Pastacode

Step-3 : Then, Click on " Plugins " + " Add New " from left Side Menu of Dashboard.

Go to Plugin Install Pastacode

Step-4 : Now, Click on " Upload Plugin " button.

Click Upload Button Pastacode

Step-5 : Now, Browse " pastacode.zip " Downloaded plugin from your computer, Where you downloaded " pastacode.zip " According to Step – 1 Above then, click on " Install Now "

Upload Plugin Pastacode

Step-6 : Now, Click on " Active Plugin "

Activate Pastacode

Step-7 : Then, See left Side Menu. " Pastacode " folder is added on left Side Menu. Now, Click on " Pastacode " folder.

Noted that: If you do not see " Pastacode " folder on left Side Menu then, see at left Side Menu " Settings " or " Tools ".

Step-8 : Now you configure yourself oR Watch video tutorial below about Pastacode Configurations and Settings or How to work " Pastacode " in your WordPress site.

oR

After Activated Plugin According to Step-6 then,

  1. Go to " Plugins " + " Installed Plugin " from Wordpress Admin Panel Leftside Menu.
  2. or Direct go to: https://yourdomain/wp-admin/plugins.php
  3. Then, Find " Pastacode " Activated Plugin from Plugin List.
  4. Then, Click on " Settings " from Plugin that is Pastacode
  5. Now, Edit/Add/Config the setting and Click on " Save Changes " button,
WP Plugin Setting



Guide
  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();

Name