{"id":231,"date":"2008-12-05T15:17:51","date_gmt":"2008-12-05T21:17:51","guid":{"rendered":"http:\/\/www.cyberward.net\/blog\/?p=231"},"modified":"2009-01-25T11:28:44","modified_gmt":"2009-01-25T17:28:44","slug":"wordpress-code-plugin","status":"publish","type":"post","link":"https:\/\/www.cyberward.net\/blog\/2008\/12\/wordpress-code-plugin\/","title":{"rendered":"WordPress Code Plugin"},"content":{"rendered":"<p>If you look at the tutorial I put up, you can see that the code snippets are syntax highlighted. Most of the java classes are initially hidden, but when you press the arrow to the right, the code slides down. Very cool. I found this WordPress plugin called <a href=\"http:\/\/wordpress.org\/extend\/plugins\/wp-codebox\/\">WP-CodeBox<\/a>. It works pretty slick.<\/p>\n<p>One thing that I wasn&#8217;t completely happy with, was that there was no &#8220;name&#8221; to the code. The header for the top just looked like this:<\/p>\n<pre lang=\"java\" colla=\"+\">\r\ncode here\r\n<\/pre>\n<p>What I wanted was something like this:<\/p>\n<pre lang=\"java\" name=\"MyName.java\" colla=\"+\">\r\ncode here\r\n<\/pre>\n<p>It took a bit of sorting through the code, but I found the section that parsed the parameters, and added a &#8220;name&#8221; parameter. Now I could add whatever text to the header I wanted, and have the name of the code stand out.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you look at the tutorial I put up, you can see that the code snippets are syntax highlighted. Most of the java classes are initially hidden, but when you press the arrow to the right, the code slides down. &hellip; <a href=\"https:\/\/www.cyberward.net\/blog\/2008\/12\/wordpress-code-plugin\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[101],"tags":[58,15],"series":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/pffAy-3J","jetpack_sharing_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/www.cyberward.net\/blog\/wp-json\/wp\/v2\/posts\/231"}],"collection":[{"href":"https:\/\/www.cyberward.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.cyberward.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.cyberward.net\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.cyberward.net\/blog\/wp-json\/wp\/v2\/comments?post=231"}],"version-history":[{"count":0,"href":"https:\/\/www.cyberward.net\/blog\/wp-json\/wp\/v2\/posts\/231\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.cyberward.net\/blog\/wp-json\/wp\/v2\/media?parent=231"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.cyberward.net\/blog\/wp-json\/wp\/v2\/categories?post=231"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.cyberward.net\/blog\/wp-json\/wp\/v2\/tags?post=231"},{"taxonomy":"series","embeddable":true,"href":"https:\/\/www.cyberward.net\/blog\/wp-json\/wp\/v2\/series?post=231"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}