The 3 Week Diet

How to Highlight code block in your WordPress post

By Sanjeev Shrivastava Our Bestseller: WordPress Themes

I have seen a lot of programmers and bloggers who usually post codes in their WordPress blog posts. Usually they post their code as a simple text so readers find it hard to distinguish between the code lines and normal post’s lines. It’s a better idea to highlight code portion so that readers can easily get the code portion on first sight. For WordPress users it is very easy to implement this through a plugin named “WP-synhighlight”. I have tested this plugin in WordPress 3.3.1 and it worked fine for me. Lets see how you can use this plugin to show code snippet as a ‘highlighted code block’ in WordPress blog posts.

First of all download this plugin by Clicking here. Install this plugin from admin panel of your WordPress blog. After successful installation this plugin will add a new button in your WordPress post editor so you can easily highlight your code using this button.

You will see some settings when you click on WP-synhighlight button:

Set these settings as per your need and go to “Code to Paste ”, here you can paste the code that you want to highlight in your post.

Then simple press “insert”. You are almost done, isn’t it really easy?  After publishing your post go to your website and have a look at your post, you will find a good looking code block there. Here is a sample page with ColorWay theme installed:

WP-synhighlight offers you more settings that you can use to change “Code block title” , default line number etc. Go to “Setting” option in your WP dashboard and there you will find WP-synhighlight.

Conclusion:

This plugin is good to easily highlight code block in your WordPress site. Share if you like this post.

About Sanjeev Shrivastava
author

Sanjeev loves web and his blog InfoTuts. His curiosity to know how things actually work keeps him active and inspires him to learn new things. He loves to help people. You can join him Here

Comments and Responses

Share on Google Plus

About Unknown

250 x 250 The 3 Week Diet tips skill football
    Blogger Comment
    Facebook Comment

0 nhận xét:

Đăng nhận xét