{"id":487,"date":"2010-01-08T12:02:17","date_gmt":"2010-01-08T11:02:17","guid":{"rendered":"http:\/\/blog.eweibel.net\/?p=487"},"modified":"2012-04-29T15:09:34","modified_gmt":"2012-04-29T13:09:34","slug":"wordpress-and-syntaxhighlighter","status":"publish","type":"post","link":"https:\/\/blog.eweibel.net\/?p=487","title":{"rendered":"WordPress and SyntaxHighlighter"},"content":{"rendered":"<p>I often post code in my blog posts, so the <a href=\"http:\/\/alexgorbatchev.com\/wiki\/SyntaxHighlighter\">SyntaxHighlighter<\/a> by is very useful. But there are several plug-ins for <a href=\"http:\/\/wordpress.org\/\">WordPress<\/a>, the question is which one is the most comfortable and has the most configuration options:<\/p>\n<ul>\n<li><a href=\"http:\/\/wordpress.org\/extend\/plugins\/google-syntax-highlighter\/\">Google Syntax Highlighter for WordPress<\/a> <\/li>\n<li>Syntax Highlighter and Code Colorizer for WordPress <\/li>\n<li><a href=\"http:\/\/www.viper007bond.com\/wordpress-plugins\/syntaxhighlighter\/\">SyntaxHighlighter Evolved<\/a> <\/li>\n<li>SyntaxHighlighter2 <\/li>\n<\/ul>\n<p><strong>Offline blogging tool support<\/strong><\/p>\n<p>When I post technical blog posts with code in it, then I prefer the way over an <a href=\"http:\/\/blog.eweibel.net\/?p=8\">offline blogging tool<\/a>. Currently I use for this use case Windows Live Writer, also because it is free. But when you use a such tool, you should have good support for writing code and support for the SyntaxHighlighter. For Windows Live Writer there exists several plug-ins for the SyntaxHighlighter:<\/p>\n<ul>\n<li><a href=\"http:\/\/www.codeplex.com\/precode\">Code snippet with SyntaxHighlighter support for Windows Live Writer<\/a> <\/li>\n<li><a href=\"http:\/\/blog.pokluda.com\/post\/Windows-Live-Writer-Source-Code-plug-in.aspx\">Windows Live Writer Source Code plug-in<\/a> <\/li>\n<li><a href=\"http:\/\/codehighlighter.codeplex.com\/\">Windows Live Writer Syntax Highlighter<\/a><\/li>\n<\/ul>\n<p>Unfortunately some of those plug-ins aren\u2019t very well tested, but to add code to a blog posts they do their job.<\/p>\n<p><strong>Conclusion<\/strong><\/p>\n<p>After testing the several plug-ins for WordPress and Windows Live Writer, I prefer currently the following plug-ins:<\/p>\n<ul>\n<li>WordPress plug-in: <a href=\"http:\/\/www.viper007bond.com\/wordpress-plugins\/syntaxhighlighter\/\">SyntaxHighlighter Evolved<\/a> <\/li>\n<li>Windows Live Writer plug-in: <a href=\"http:\/\/codehighlighter.codeplex.com\/\">Windows Live Writer Syntax Highlighter<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>I often post code in my blog posts, so the SyntaxHighlighter by is very useful. But there are several plug-ins for WordPress, the question is which one is the most comfortable and has the most configuration options: Google Syntax Highlighter for WordPress Syntax Highlighter and Code Colorizer for WordPress SyntaxHighlighter Evolved SyntaxHighlighter2 Offline blogging tool support When I post technical blog posts with code in it, then I prefer the way over an offline blogging tool. Currently I use for&#8230;<\/p>\n<p class=\"read-more\"><a class=\"btn btn-default\" href=\"https:\/\/blog.eweibel.net\/?p=487\"> Read More<span class=\"screen-reader-text\">  Read More<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[5,9],"tags":[],"class_list":["post-487","post","type-post","status-publish","format-standard","hentry","category-good-practices","category-private"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/plOV9-7R","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":8,"url":"https:\/\/blog.eweibel.net\/?p=8","url_meta":{"origin":487,"position":0},"title":"Offline blogging tools","author":"Patrick","date":"28. Apr 2007","format":false,"excerpt":"There are several offline blogging tools, but two of them are interesting: Blogjet Windows Live Writer The Blogjet tool works very fine and I could also formatting my source-code. The microsoft-tool (currently it's for free) looks even better as the blogjet-tool and I think it has more or less the\u2026","rel":"","context":"In &quot;First experiencies&quot;","block_context":{"text":"First experiencies","link":"https:\/\/blog.eweibel.net\/?cat=7"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":200,"url":"https:\/\/blog.eweibel.net\/?p=200","url_meta":{"origin":487,"position":1},"title":"How to structure code in an unit test","author":"Patrick","date":"14. Jun 2009","format":false,"excerpt":"When you create your unit tests for a method in the SUT (software under test) you will ask yourself how to structure the code in the test method.I saw two kind of syntaxes which help to structure the code in a unit test method (well, actually there are at least\u2026","rel":"","context":"In &quot;.NET&quot;","block_context":{"text":".NET","link":"https:\/\/blog.eweibel.net\/?cat=13"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":34,"url":"https:\/\/blog.eweibel.net\/?p=34","url_meta":{"origin":487,"position":2},"title":"Are 100% code coverage reasonable?","author":"Patrick","date":"2. Mar 2009","format":false,"excerpt":"When you use a code coverage tool one of the first question is what is a good code coverage. Recently I listened to different podcasts (stackoverflow, scott hanselman) where they discuss this topic. I wasn't really surprised that there wasn't one unique opinion.One opinion was that 100% is a good\u2026","rel":"","context":"In &quot;Software architecture&quot;","block_context":{"text":"Software architecture","link":"https:\/\/blog.eweibel.net\/?cat=4"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1086,"url":"https:\/\/blog.eweibel.net\/?p=1086","url_meta":{"origin":487,"position":3},"title":"Grooming your code base","author":"Patrick","date":"1. Sep 2011","format":false,"excerpt":"When you're doing Test Driven Development (TDD), it's in the process: Red-Green-Refactor. Refactoring doesn't only mean to improve your new code, it is also important to make your existing code nicer. If you are a .NET Developer, then you should have the Visual Studio Add-on ReSharper. With this tool you\u2026","rel":"","context":"In &quot;.NET&quot;","block_context":{"text":".NET","link":"https:\/\/blog.eweibel.net\/?cat=13"},"img":{"alt_text":"Fotolia_32643902_S","src":"https:\/\/i0.wp.com\/blog.eweibel.net\/wp-content\/uploads\/Fotolia_32643902_S_thumb1.jpg?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":376,"url":"https:\/\/blog.eweibel.net\/?p=376","url_meta":{"origin":487,"position":4},"title":"Mocking frameworks in .Net","author":"Patrick","date":"30. Mar 2010","format":false,"excerpt":"A few month ago I played with some mocking frameworks in .Net. There are already some comparisons available (here, here or here). In this blog post I want to show which frameworks are available and which one fits best for agile development. You could download the source code from github.com.\u2026","rel":"","context":"In &quot;.NET&quot;","block_context":{"text":".NET","link":"https:\/\/blog.eweibel.net\/?cat=13"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":281,"url":"https:\/\/blog.eweibel.net\/?p=281","url_meta":{"origin":487,"position":5},"title":"VB-stereotype: Are there programmers who fit any more?","author":"Patrick","date":"29. Jun 2009","format":false,"excerpt":"I saw recently the talk \"Comparing Java Web Framworks\" on Parleys.com and when the speaker talks about JSF, he used the word \"VB\". I was a little bit surprised, that also in the java world the VB-stereotype is known. But what about is this VB-stereotype? Are there programmers who fit\u2026","rel":"","context":"In &quot;.NET&quot;","block_context":{"text":".NET","link":"https:\/\/blog.eweibel.net\/?cat=13"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/blog.eweibel.net\/index.php?rest_route=\/wp\/v2\/posts\/487","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.eweibel.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.eweibel.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.eweibel.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.eweibel.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=487"}],"version-history":[{"count":11,"href":"https:\/\/blog.eweibel.net\/index.php?rest_route=\/wp\/v2\/posts\/487\/revisions"}],"predecessor-version":[{"id":1210,"href":"https:\/\/blog.eweibel.net\/index.php?rest_route=\/wp\/v2\/posts\/487\/revisions\/1210"}],"wp:attachment":[{"href":"https:\/\/blog.eweibel.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=487"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.eweibel.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=487"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.eweibel.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=487"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}