I'm a software developer and I've started my first blog on Information Technology. Since I'm using wordpress (hosted free plan) as blogging platform, I'm wondering if there's a fast and useful way for styling code snippet in my posts.
|
migrated from writers.stackexchange.com May 1 '11 at 16:53
|
If you use free wordpress without ability to install plugin, you can use online free service to convert your code into styled HTML called Quick Highlighter |
|||
|
|
|
I prefer WP-Syntax plugin for styling code snippets it also supports many programming languages such as PHP, Bash scripting, etc. There are also many other WP-Syntax Plugins to help with styling, visiaul editor support, etc. WP-Syntax (Basic Plugin) WP-Syntax Colorizer (Styling Plugin) |
|||
|
|
|
I use Wordpress, and I use SyntaxHighlighter Evolved for formatting code on my blog. It's very simple to use, and has support for a wide variety of styling languages. It also has support for different colour schemes I believe (although I have not used it myself). |
|||
|
|
|
Wrap the code in the <code> or <pre> tags, depending on whether it's an inline snippet or a block of code. Also, search the web for "wordpress syntax highlighter," which will tell you about several wordpress plugins that can color and style code elements for various programming languages. Finally, the Wordpress StackExchange site will probably have some great answers for you: http://wordpress.stackexchange.com/ |
|||
|
