{"id":35,"date":"2009-04-22T00:13:08","date_gmt":"2009-04-21T22:13:08","guid":{"rendered":"http:\/\/raftaman-net.lahno-web2.de\/wordpress\/?p=35"},"modified":"2021-05-15T11:46:42","modified_gmt":"2021-05-15T09:46:42","slug":"syntaxhighlighting-reloaded","status":"publish","type":"post","link":"https:\/\/possiblelossofprecision.net\/?p=35","title":{"rendered":"Syntax highlighting reloaded"},"content":{"rendered":"<p>Recently (well, <a href=\"https:\/\/possiblelossofprecision.net\/?p=3\">yesterday<\/a> to be exact) I was really sold on a a syntax highlighting plugin for WordPress called WP-Syntax. Basically, I am still. It is still easy to use, looks good and comes with a huge variety of supported languages.<\/p>\n<p>But if you ask the WordPress-guys<\/a> it isn&#8217;t first choice. In their <a href=\"http:\/\/support.wordpress.com\/code\/\">FAQ<\/a> they point you to Alex Gorbatchev&#8217;s <a href=\"http:\/\/code.google.com\/p\/syntaxhighlighter\/\">syntaxhighligher Google Code project<\/a>. There are quite a <a href=\"http:\/\/alexgorbatchev.com\/wiki\/SyntaxHighlighter:Integration\">lot of implementations<\/a> availible including three different plugins for WordPress. So I looked a little closer at <a href=\"http:\/\/www.viper007bond.com\/wordpress-plugins\/syntaxhighlighter\/\">SyntaxHighlighter Evolved<\/a> and I must admit that it is really nice.<\/p>\n<pre class=\"brush: java; highlight: [3]; title: ; notranslate\" title=\"\">\r\npublic class Hello {\r\n   public static void main(String&#x5B;] args) {\r\n      \/* This line is highlighted. *\/\r\n      System.out.println(\"Hello world!\");\r\n   }\r\n}\r\n<\/pre>\n<p>Especially the line highlighting is very nice. It doesn&#8217;t support as many languages as WP-Syntax, but as I mainly use it for Java snippets that shouldn&#8217;t be a major problem.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Recently (well, yesterday to be exact) I was really sold on a a syntax highlighting plugin for WordPress called WP-Syntax. Basically, I am still. It is still easy to use, looks good and comes with a huge variety of supported languages. But if you ask the WordPress-guys it isn&#8217;t first choice. In their FAQ they point you to Alex Gorbatchev&#8217;s&#8230; <a href=\"https:\/\/possiblelossofprecision.net\/?p=35\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[4,3],"class_list":["post-35","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-java","tag-wordpress"],"_links":{"self":[{"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=\/wp\/v2\/posts\/35","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=35"}],"version-history":[{"count":16,"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=\/wp\/v2\/posts\/35\/revisions"}],"predecessor-version":[{"id":1839,"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=\/wp\/v2\/posts\/35\/revisions\/1839"}],"wp:attachment":[{"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=35"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=35"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=35"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}