If you have blog and that blog focus on programming language then you need some plugin to add your code in that post so that your code look as same as they look in your code editor with proper color and format etc. , but plugin slow down your site because they contain more javascript files and we all know the speed issue of wordpress. So i find a very good and relevant solution. Now in am not using any of code viewer plugin as of now in my posts.

Step 1. Login to your github account.

Step 2. In top navigation bar click on Gist.

Step 3. Name your gist or name as same as your file name and paste your code inside it. Save your gist as Public Gist so it can access any where.

Step 4. Now once you save your gist copy the URL of that Gist from address bar of browser and paste it into your wordpress post.

Sample Preview