Archive for the ‘Google Syntax Highlighter for WordPress’ tag
Automatically Add Name Attribute for Google Syntax Highlighter
If you write programming related posts in your blog, you are most probably using Google Syntax Highlighter to highlight your code snippets. In case if you don’t, it’s a set of javascripts that allows you to add syntax highlighting for source code that you post on your blog. It supports a large number of programming languages. After installing “Google Syntax Highlighter for WordPress” plugin (If you are using WordPress of course), all you got to do is to enclose your code inside “pre” tags, add a name attribute with value ‘code’ and then set the language of programming code in class attribute.
Ex:-
<pre name="code" class="java"> .... </pre>
But there is a slight problem. When you use it with WordPress WYSIWYG post editor all the name attributes get removed. Therefore every time you change the post using WYSIWYG editor you have to go back to HTML view and add name attributes again. Which is really a pain if your post is a large one with lots of text and code snippets.
Moving from WordPress.com to Own Hosting – Installing Essential Plugins
Moving to own hosting gives you full control to do pretty much anything under the code of conduct of your new host. And having a domain of your own is kind of cool
. But be careful when you ask for full control! Because you will get exactly full control. And you will be on your own. WordPress.com installs a quite a number of plugins for you and make them work seamlessly. But after moving to own hosting you have to do those thing on your own.
As soon as you setup WordPress and log in to dashboard you will realize few things. Dashboard does not look the same. Lots of things are not there. Even the Akismet spam filter is not working. You might even have a brief moment of panic. There is a lot of work to do.
This is a follow-up to my earlier post “Moving from WordPress.com to Own Hosting – Getting It Up and Running“. In this post I am writing about the plugins that you will need to make your new blog work at least in the same way your WordPress hosted blog did. If you haven’t setup your blog on your own hosting, may be you can start by reading my earlier post. If you have no plan to host a blog on your own, you don’t need to read this post.






