Banner for Preserve Code Formatting
Preserve formatting of code for display by preventing its modification by WordPress and other plugins while also retaining whitespace. Wordpress Tutorial
Noted That:
  • To install correctly this preserve-code-formatting.zip .
  • Fisrt Download the preserve-code-formatting.zip to your computer
  • Extract/Open preserve-code-formatting.zip to Your Computer.
  • Then, Find readme.txt file inside preserve-code-formatting.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 " preserve-code-formatting.zip " to Your Local Computer.

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

Login to Wordpress Preserve Code Formatting

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

Go to Plugin Install Preserve Code Formatting

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

Click Upload Button Preserve Code Formatting

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

Upload Plugin Preserve Code Formatting

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

Activate Preserve Code Formatting

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

Noted that: If you do not see " Preserve Code Formatting " 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 Preserve Code Formatting Configurations and Settings or How to work " Preserve Code Formatting " 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 " Preserve Code Formatting " Activated Plugin from Plugin List.
  4. Then, Click on " Settings " from Plugin that is Preserve Code Formatting
  5. Now, Edit/Add/Config the setting and Click on " Save Changes " button,
WP Plugin Setting



Guide
  1. Whether installing or updating, whether this plugin or any other, it is always advisable to back-up your data before starting
  2. Install via the built-in WordPress plugin installer. Or download and unzip preserve-code-formatting.zip inside the plugins directory for your site (typically wp-content/plugins/ )
  3. Activate the plugin through the ‘Plugins’ admin menu in WordPress
  4. Go to the Settings -> Code Formatting admin settings page (which you can also get to via the Settings link next to the plugin on the Manage Plugins page) and customize the settings.
  5. Write a post with code contained within opening and closing code tags. If you are using the block editor (aka Gutenberg), then this plugin is only useful for maintaining code formatting for posts written before WP 5.0 (or whenever you started creating posts with the block editor). You should be using the built-in code block when including code into the block editor. Otherwise, if you are actively using the classic editor, be sure to use the HTML (aka “Text”) editor and not the “Visual” editor or you’ll encounter formatting issues.

Name