Tuesday 24 May 2016

How To Add Syntax Highlighter to WordPress Post/Pages

In Self Hosted WordPress Theme Based Website/blog Showing Syntax Highlighter Code is Very Easy. You just have to do is Just Download Syntax Highlighter Plugin from Here. Install Plug-in. After Downloading Plugin Just Follow Steps Below.


1. Just login Into your WordPress Dashboard.
2. Click on Plugin Tab from Left Menu.
3. Now You’re on Installed Plugins Page. Click On “Add New” Then “Upload Plugin”
4. Select Plugin File what you have Downloaded Recently & Install Plugin.

If you don’t Find Any Error then find another plugin that suits your Theme Version. If not Than Your Done.

Now Plugin has installed successfully. Now The Main Question is how to Use Syntax Highlighter. To know How to Handle with this Please Find Steps Below

syntax highlighter code

Create A New Post or Static Page. Just Use above codeƂ  to Show your Text/Code as Syntax Highlighter, Below is the Example;

[code lang=”xml”]
</——–Code Starts Here—–>
<!DOCTYPE html>
<html>
<head>
<meta charset=”UTF-8″>
<title>Title of the document</title>
</head>

<body>
Content of the document……
</body>

</html>
</——–Code Ends Here—–>

[/code]

Whenever You Need to Syntax your Code or Text you use these Simple Tags.

Hope You Enjoy The Tutorial.

0 comments:

Post a Comment