Hello Friends,
Today I will be sharing a cool trick to highlight the code in your blog
As a developer or coder we always look for any code snippet on any website may be it is in java or PHP but it looks in awesome format just what it looks like in our IDE.
If you don’t know what is syntax highlighting then let me tell you in short story.
Whenever we search for any code as an e.g
just look at that formatting its awesome we have not done it manually.So that is called as syntax highlighting based on the type of the language(java/c/c++.).
We have heard about crayon-syntax–highlighter,developer formatter and many more are there which support this syntax highlighting but the sad part is they are plugins and they are not awesome like Github.
Today I am going to tell you the trick so that you can apply the same look and feel without plugin.
Step 1: Use Github Gist .
Github Gist is a small repository of programming languages which support many new programming languages .Don’t worry its a small process….just after a small sign up you are good to go.I am with you till you get there with screen shots.
Just go to https://github.com/ and fill sign up form.
Step 2 : After creating account just move to Gist or Github Gist.
Your browser will show the following address : https://gist.github.com/
In the first box we have to write description regarding our file and in second box we have to write the file name with extension.e.g for Java file write filename.java.
Now just click on create public gist at bottom right side(important don’t click on private) otherwise your gist will not be visible for public.
Now your public gist is created and you need to embed this gist in your WordPress blog.
Step 3: Copy the link url from your browser like below:
Step 4 : Now go to WordPress blog and download one small plugin oEmbed Gist which will save your precious time to embed your gist url directly into your blog.Well there are many other techniques like short code..to insert gist into blog but this is the best way and it’s theme independent.
Step 5: Now after installing and activating the plugin just paste the url of your gist that you have copied in Step 3.Automatically your code will be highlighted in the git like structure.You can also see its live preview immediately after pasting the link.
You can see demo at the beginning of the post(sample.json)
Hope so friends …you got all the steps and succesfully integrate this syntax highlighting.
Benefit of this gist is you can access this code from anywhere and anyone can access it.
If you face any difficulty doing this then comment ….I will try to solve them.
Thank You.Happy Blogging….
Ravi Yadav is an Android developer whose passion is to develop Android applications and sharing his work. He loves to post the tutorials which he created while learning any new latest technology topic.He loves to share about the latest technology happenings and other tricks that will be helpful for readers of Askfortricks.
michael kors handbags
That is the correct weblog for anybody who needs to find out about this topic. You understand a lot its virtually onerous to argue with you (not that I really would want匟aHa). You undoubtedly put a brand new spin on a topic thats been written about for…
cheap oakley sunglasses
You must take part in a contest for probably the greatest blogs on the web. I’ll advocate this site!
fitflops outlet
Your place is valueble for me. Thanks!?
http://www.cheaprealjordans.us.com
WONDERFUL Post.thanks for share..more wait .. ?
cheap basketball shoes
Oh my goodness! a tremendous article dude. Thanks Nevertheless I’m experiencing situation with ur rss . Don抰 know why Unable to subscribe to it. Is there anybody getting similar rss problem? Anyone who is aware of kindly respond. Thnkx
oakley store online
You made some respectable factors there. I appeared on the internet for the difficulty and found most individuals will go together with along with your website.
michael kors outlet
WONDERFUL Post.thanks for share..more wait .. ?
cheap authentic jordans
Nice post. I be taught one thing more difficult on totally different blogs everyday. It’s going to all the time be stimulating to learn content from other writers and observe just a little something from their store. I抎 choose to make use of some with…
michael kors handbags
The subsequent time I read a blog, I hope that it doesnt disappoint me as much as this one. I mean, I know it was my option to read, but I actually thought youd have one thing fascinating to say. All I hear is a bunch of whining about one thing that yo…
mlb jerseys authentic
There’s noticeably a bundle to learn about this. I assume you made sure good points in features also.
cheap oakley sunglasses
Would you be curious about exchanging hyperlinks?
cheap oakley sunglasses
It’s best to take part in a contest for one of the best blogs on the web. I’ll advocate this web site!
cheap true religion jeans
WONDERFUL Post.thanks for share..extra wait .. ?
toms outlet store
There are some fascinating deadlines on this article however I don抰 know if I see all of them heart to heart. There may be some validity but I will take maintain opinion until I look into it further. Good article , thanks and we want extra! Added to Fe…
http://www.tiffanyandcojewellery.us.com
An attention-grabbing discussion is value comment. I believe that you need to write extra on this subject, it won’t be a taboo topic but generally persons are not sufficient to talk on such topics. To the next. Cheers
http://www.huaracheshoes.uk
Aw, this was a very nice post. In idea I want to put in writing like this additionally ?taking time and precise effort to make an excellent article?however what can I say?I procrastinate alot and certainly not appear to get one thing done.
kobe shoes
Nice post. I study one thing more challenging on different blogs everyday. It will all the time be stimulating to learn content material from different writers and practice slightly something from their store. I抎 want to use some with the content on my…
ray ban sunglasses
very nice publish, i actually love this web site, keep on it
michael jordan shoes
Nice post. I learn one thing tougher on totally different blogs everyday. It’s going to always be stimulating to learn content from different writers and practice a bit of something from their store. I抎 prefer to make use of some with the content mate…
air jordan shoes
Hiya! I just would like to give an enormous thumbs up for the great data you will have here on this post. I will be coming back to your weblog for more soon.
http://www.michaelkors-outletfactory.us.com
Oh my goodness! an incredible article dude. Thanks Nevertheless I am experiencing difficulty with ur rss . Don抰 know why Unable to subscribe to it. Is there anyone getting equivalent rss problem? Anybody who knows kindly respond. Thnkx
tiffany and co outlet
Would you be fascinated by exchanging links?
jordan shoes on sale
Would you be occupied with exchanging hyperlinks?
ray ban sunglasses
Can I simply say what a relief to find someone who really is aware of what theyre talking about on the internet. You positively know the way to bring an issue to light and make it important. Extra individuals must read this and perceive this aspect of…
michael kors handbags
you’ve got an amazing blog right here! would you prefer to make some invite posts on my weblog?
toms outlet
I抦 impressed, I need to say. Actually not often do I encounter a blog that抯 both educative and entertaining, and let me tell you, you might have hit the nail on the head. Your idea is excellent; the problem is one thing that not sufficient people are s…
michael kors handbags
WONDERFUL Post.thanks for share..extra wait .. ?
michael kors outlet online
Youre so cool! I dont suppose Ive learn something like this before. So good to seek out somebody with some unique thoughts on this subject. realy thanks for beginning this up. this web site is something that’s needed on the net, somebody with a little…
ralph lauren online
It抯 exhausting to search out knowledgeable folks on this matter, but you sound like you know what you抮e talking about! Thanks
tiffany and co outlet
I抦 impressed, I have to say. Actually not often do I encounter a weblog that抯 each educative and entertaining, and let me let you know, you could have hit the nail on the head. Your thought is excellent; the problem is something that not sufficient per…
air jordan 11
I抎 have to verify with you here. Which is not one thing I usually do! I enjoy studying a publish that may make folks think. Also, thanks for permitting me to remark!
louis vuitton handbags
Spot on with this write-up, I actually suppose this web site wants far more consideration. I抣l in all probability be once more to read rather more, thanks for that info.
nike zoom kobe
I抦 impressed, I must say. Actually hardly ever do I encounter a weblog that抯 both educative and entertaining, and let me inform you, you have got hit the nail on the head. Your concept is outstanding; the difficulty is something that not enough individ…
tiffany,tiffany and co,tiffany and co jewelry,tiffany necklace,tiffany bracelet,tiffany ring,tiffany earrings
you will have an ideal blog right here! would you prefer to make some invite posts on my weblog?
oakley sunglasses,oakley outlet sunglasses
Spot on with this write-up, I actually assume this website wants way more consideration. I抣l probably be once more to read far more, thanks for that info.
toms outlet store
Oh my goodness! a tremendous article dude. Thank you Nevertheless I’m experiencing situation with ur rss . Don抰 know why Unable to subscribe to it. Is there anybody getting identical rss downside? Anybody who is aware of kindly respond. Thnkx
kobe sneakers
I used to be more than happy to search out this net-site.I wished to thanks in your time for this excellent read!! I definitely having fun with each little bit of it and I have you bookmarked to check out new stuff you weblog post.
michael kors outlet purses
An impressive share, I just given this onto a colleague who was doing slightly analysis on this. And he in reality bought me breakfast as a result of I found it for him.. smile. So let me reword that: Thnx for the treat! However yeah Thnkx for spending…
basketball shoes
There are some attention-grabbing points in time in this article but I don抰 know if I see all of them middle to heart. There’s some validity but I’ll take maintain opinion until I look into it further. Good article , thanks and we would like extra! A…
air jordan retro
Oh my goodness! an amazing article dude. Thanks Nevertheless I’m experiencing situation with ur rss . Don抰 know why Unable to subscribe to it. Is there anybody getting equivalent rss drawback? Anybody who is aware of kindly respond. Thnkx
http://www.nikedunks.us.org
I was more than happy to search out this net-site.I wished to thanks in your time for this glorious read!! I undoubtedly enjoying every little bit of it and I’ve you bookmarked to check out new stuff you weblog post.
tiffany and co jewellery
This site is known as a stroll-through for the entire information you wished about this and didn抰 know who to ask. Glimpse here, and also you抣l definitely uncover it.
michael kors outlet online
This website online is mostly a stroll-by for all of the information you needed about this and didn抰 know who to ask. Glimpse here, and you抣l undoubtedly uncover it.
oakley sunglasses
It is best to take part in a contest for among the finest blogs on the web. I’ll advocate this website!
oakley sunglasses
Can I just say what a reduction to seek out somebody who really is aware of what theyre speaking about on the internet. You positively know tips on how to carry a problem to mild and make it important. More people need to learn this and perceive this a…
jordan retro
Spot on with this write-up, I really assume this web site needs rather more consideration. I抣l in all probability be again to learn far more, thanks for that info.
true religion store
An impressive share, I simply given this onto a colleague who was doing slightly analysis on this. And he the truth is bought me breakfast as a result of I found it for him.. smile. So let me reword that: Thnx for the deal with! But yeah Thnkx for spen…
michael kors outlet
After research a few of the blog posts on your website now, and I really like your manner of blogging. I bookmarked it to my bookmark website list and might be checking again soon. Pls check out my website as properly and let me know what you think.
http://www.rayban-sunglasses.uk
I抎 must verify with you here. Which is not something I normally do! I enjoy studying a submit that will make people think. Additionally, thanks for permitting me to remark!
http://www.airhuarache.uk
This really answered my drawback, thank you!
chrome hearts online store
Youre so cool! I dont suppose Ive read anything like this before. So nice to seek out any person with some original ideas on this subject. realy thanks for beginning this up. this website is something that is wanted on the web, someone with a little or…
http://www.cheap-airjordans.us.com
very nice post, i certainly love this website, keep on it
fitflops
There are actually plenty of details like that to take into consideration. That could be a great point to convey up. I supply the ideas above as basic inspiration however clearly there are questions like the one you bring up where a very powerful thing…
ugg outlet
There are certainly quite a lot of particulars like that to take into consideration. That could be a great point to carry up. I supply the ideas above as normal inspiration however clearly there are questions just like the one you bring up the place an…
air huarache shoes
Aw, this was a very nice post. In idea I would like to put in writing like this moreover ?taking time and actual effort to make a very good article?but what can I say?I procrastinate alot and not at all appear to get something done.
kobe shoes
You made some first rate factors there. I appeared on the web for the issue and located most people will go together with along with your website.
michael kors outlet store
Good post. I study one thing tougher on completely different blogs everyday. It would all the time be stimulating to learn content material from different writers and observe slightly something from their store. I抎 choose to make use of some with the c…
replica christian louboutin
A formidable share, I simply given this onto a colleague who was doing somewhat analysis on this. And he in reality bought me breakfast as a result of I discovered it for him.. smile. So let me reword that: Thnx for the treat! But yeah Thnkx for spendi…
cheap oakley sunglasses
Youre so cool! I dont suppose Ive learn anything like this before. So nice to seek out anyone with some unique ideas on this subject. realy thank you for starting this up. this web site is something that’s wanted on the net, somebody with slightly ori…
air jordan retro
This is the suitable blog for anybody who needs to seek out out about this topic. You understand so much its virtually laborious to argue with you (not that I truly would need匟aHa). You definitely put a brand new spin on a subject thats been written ab…
huaraches shoes
you’ve gotten an amazing blog right here! would you prefer to make some invite posts on my blog?
jordans for cheap
The subsequent time I learn a weblog, I hope that it doesnt disappoint me as much as this one. I mean, I know it was my choice to read, but I actually thought youd have one thing attention-grabbing to say. All I hear is a bunch of whining about one thi…
kobe basketball shoes
Would you be all for exchanging links?
tiffany online
Once I originally commented I clicked the -Notify me when new feedback are added- checkbox and now each time a comment is added I get four emails with the identical comment. Is there any means you’ll be able to remove me from that service? Thanks!
michael kors outlet store
I抎 have to test with you here. Which isn’t one thing I usually do! I take pleasure in reading a put up that may make people think. Additionally, thanks for permitting me to remark!
michael kors outlet
I’m usually to running a blog and i actually respect your content. The article has really peaks my interest. I am going to bookmark your website and hold checking for brand new information.
cheap jordans for sale
This is the precise blog for anybody who desires to seek out out about this topic. You notice so much its virtually laborious to argue with you (not that I truly would want匟aHa). You positively put a brand new spin on a subject thats been written about…
fitflop sandals
After I originally commented I clicked the -Notify me when new feedback are added- checkbox and now every time a remark is added I get 4 emails with the same comment. Is there any manner you possibly can remove me from that service? Thanks!
http://www.michaelkorshandbagsclearance.com.co
You made some first rate factors there. I appeared on the internet for the issue and located most people will go along with together with your website.
fitflops outlet
Aw, this was a really nice post. In idea I wish to put in writing like this moreover ?taking time and actual effort to make an excellent article?but what can I say?I procrastinate alot and by no means seem to get something done.
cheap oakley sunglasses
There is noticeably a bundle to know about this. I assume you made sure nice points in options also.
nfl jerseys
Would you be taken with exchanging hyperlinks?
michael kors outlet store
This really answered my problem, thanks!
toms outlet store
you have got an incredible weblog right here! would you wish to make some invite posts on my weblog?
mlb jerseys authentic
This actually answered my downside, thank you!
cheap oakley sunglasses store
Can I simply say what a relief to seek out somebody who actually knows what theyre speaking about on the internet. You undoubtedly know easy methods to deliver an issue to light and make it important. Extra folks must read this and understand this aspe…
true religion outlet store
I抎 should check with you here. Which isn’t something I normally do! I enjoy reading a put up that will make individuals think. Also, thanks for permitting me to comment!
nfl jerseys
I discovered your blog web site on google and test a few of your early posts. Proceed to keep up the excellent operate. I just extra up your RSS feed to my MSN News Reader. In search of ahead to studying more from you in a while!?
michael kors outlet online
I discovered your blog website on google and verify a couple of of your early posts. Continue to keep up the excellent operate. I simply further up your RSS feed to my MSN News Reader. Looking for forward to studying more from you later on!?
coach outlet online
There are some attention-grabbing time limits in this article but I don抰 know if I see all of them center to heart. There’s some validity however I will take maintain opinion until I look into it further. Good article , thanks and we want extra! Added…
michael kors outlet online
Nice post. I learn something more challenging on totally different blogs everyday. It will always be stimulating to read content from different writers and practice a bit of something from their store. I抎 prefer to use some with the content on my blog…
cheap true religion
There’s noticeably a bundle to learn about this. I assume you made certain nice points in options also.
nfl jerseys
The following time I learn a blog, I hope that it doesnt disappoint me as a lot as this one. I mean, I know it was my option to learn, but I really thought youd have something fascinating to say. All I hear is a bunch of whining about one thing that yo…
michael kors outlet
You made some first rate points there. I appeared on the internet for the difficulty and found most people will associate with with your website.
michael kors outlet
Would you be inquisitive about exchanging hyperlinks?
Yes y not…..send email on developer.human12@gmail.com
michael kors outlet online
Your house is valueble for me. Thanks!?
michael kors handbags
I used to be more than happy to seek out this web-site.I wished to thanks for your time for this wonderful read!! I definitely having fun with each little bit of it and I’ve you bookmarked to take a look at new stuff you weblog post.
ray ban sunglasses outlet
you could have a fantastic weblog right here! would you like to make some invite posts on my blog?
cheap uggs
WONDERFUL Post.thanks for share..more wait .. ?
oakley sunglasses
You made some decent factors there. I regarded on the internet for the problem and found most people will associate with together with your website.
toms outlet store
I found your weblog website on google and check a number of of your early posts. Proceed to keep up the very good operate. I just extra up your RSS feed to my MSN News Reader. Seeking forward to studying extra from you afterward!?
fitflop sandals
Would you be all in favour of exchanging links?
mlb jerseys authentic
You made some first rate points there. I appeared on the internet for the difficulty and located most individuals will go together with along with your website.
air jordan 11
I discovered your weblog site on google and test a few of your early posts. Proceed to maintain up the superb operate. I just extra up your RSS feed to my MSN Information Reader. In search of forward to studying extra from you in a while!?
fitflops
very nice post, i definitely love this web site, keep on it
Cheap Jordan Shoes
Your house is valueble for me. Thanks!?
Michael Kors Online Outlet
You must take part in a contest for among the finest blogs on the web. I will suggest this web site!
Oakley Sunglasses
Can I just say what a relief to seek out someone who really knows what theyre talking about on the internet. You undoubtedly know learn how to bring a problem to mild and make it important. Extra individuals must learn this and understand this side of…
Cheap NFL Jerseys
I wanted to send you the tiny word in order to say thank you once again regarding the wonderful tricks you have shown in this article. It is so incredibly open-handed of you to convey openly what many of us could have advertised as an e book to make so…
Michael Kors Handbags
I wanted to send you one bit of observation in order to say thanks a lot the moment again relating to the incredible methods you’ve provided here. It’s really surprisingly generous with you to present freely what exactly some people might have advert…
When I initially commented I clicked the -Notify me when new comments are added- checkbox and now each time a remark is added I get four emails with the identical comment. Is there any way you’ll be able to remove me from that service? Thanks!