I know this issue and this trick. Syntax highlighting is cool. There's a plug-in for that on Wordpress, luckily a cool guy, made it ready for us using JavaScript.
You can check the project here.
First thing is to download the nice project. Then you have to upload it to your server or use mine. (If you have a server upload! because my server quota may ran off, so let the place only for those who don't have server :( )
I have uploaded the files to my server as they are in the folder "http://omarabid.com/highlighter"
So you can find the script folder for example here "http://omarabid.com/highlighter/script".
So enjoy if you don't have a place, I don't recommend to use free hosting because I used them and got only problems from them.
However in Blogger you can put it on your Blog template. Create a new widget and put the following code on it
Now we can use the syntax highlighter, luckily it supports many languages. Python, VB, Java... That's really cool, check the list of Syntax highlighter supported language.
Then you can put smart blocks of code! enjoy!
No comments:
Post a Comment