{"id":8526,"date":"2010-04-06T18:07:12","date_gmt":"2010-04-06T18:07:12","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/javascript-syntaxhighlight\/"},"modified":"2010-04-06T18:28:34","modified_gmt":"2010-04-06T18:28:34","slug":"javascript-syntaxhighlight","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/javascript-syntaxhighlight\/","author":5896752,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"2.1.364","stable_tag":"trunk","tested":"3.0.5","requires":"2.0.0","requires_php":"","requires_plugins":"","header_name":"Javascript Syntax Highlighter","header_author":"Alexander Wagner","header_description":"","assets_banners_color":"","last_updated":"2010-04-06 18:28:34","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/wordpress.org\/extend\/plugins\/javascript-syntaxhighlight\/","header_author_uri":"http:\/\/chaoticmusings.com","rating":0,"author_block_rating":0,"active_installs":10,"downloads":2626,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1573769","resolution":"1","location":"plugin"}},"screenshots":{"1":"Simple PHP Example"}},"plugin_section":[],"plugin_tags":[1214,1975,4444,229,2207],"plugin_category":[46,59],"plugin_contributors":[82511,96817],"plugin_business_model":[],"class_list":["post-8526","plugin","type-plugin","status-closed","hentry","plugin_tags-code","plugin_tags-formatting","plugin_tags-highlighter","plugin_tags-javascript","plugin_tags-syntax","plugin_category-editor-and-writing","plugin_category-utilities-and-tools","plugin_contributors-peterryan","plugin_contributors-rarian","plugin_committers-rarian"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/javascript-syntaxhighlight.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/javascript-syntaxhighlight\/trunk\/screenshot-1.png?rev=1573769","caption":"Simple PHP Example"}],"raw_content":"<!--section=description-->\n<p>This plugin eases the use of <a href=\"http:\/\/alexgorbatchev.com\/wiki\/SyntaxHighlighter\">Alex Gorbatchev's SyntaxHighlighter<\/a>, a lightweight javascript based code snippet highlighter within WordPress.<\/p>\n\n<p>Supports a wide range of languages currently including:= Feature summary =<\/p>\n\n<ul>\n<li>100% client side, no server dependency<\/li>\n<li>Multiple languages support<\/li>\n<li>Wide browser support<\/li>\n<li>Very lightweight<\/li>\n<\/ul>\n\n<h4>Languages Supported<\/h4>\n\n<ul>\n<li>AS3<\/li>\n<li>Bash<\/li>\n<li>C#<\/li>\n<li>ColdFusion<\/li>\n<li>C++<\/li>\n<li>CSS<\/li>\n<li>Delphi<\/li>\n<li>Diff<\/li>\n<li>Erlang<\/li>\n<li>Groovy<\/li>\n<li>JScript<\/li>\n<li>Java<\/li>\n<li>JavaFX<\/li>\n<li>Perl<\/li>\n<li>Php<\/li>\n<li>Plain<\/li>\n<li>PowerShell<\/li>\n<li>Python<\/li>\n<li>Ruby<\/li>\n<li>Scala<\/li>\n<li>SQL<\/li>\n<li>VB<\/li>\n<li>XML<\/li>\n<\/ul>\n\n<!--section=installation-->\n<ol>\n<li>Extract plugin into \/wp-content\/plugins directory.<\/li>\n<li>Activate the plugin.<\/li>\n<li>Specify the code snippets in your blog post following the <a href=\"http:\/\/alexgorbatchev.com\/wiki\/SyntaxHighlighter:Usage#.3Cpre_.2F.3E_method\">Usage Directions<\/a>.<\/li>\n<\/ol>\n\n<p>Here is an example to produce PHP syntax highlighting once the plugin is activated:<\/p>\n\n<pre> \n\/***********************************\n ** Multiline block comments\n **********************************\/\n\n$stringWithUrl = &quot;http:\/\/alexgorbatchev.com&quot;;\n$stringWithUrl = 'hello world';\n\nob_start(&quot;parseOutputBuffer&quot;);        \/\/ Start Code Buffering\nsession_start();\n\nfunction parseOutputBuffer($buf) {\n    global $portal_small_code, $portal_gzcompress;\n    global $PHP_SELF, $HTTP_ACCEPT_ENCODING;\n\n    \/\/ cleaning out the code.\n    if($portal_small_code &amp;&amp;&nbsp;!$portal_gzcompress) {\n        $buf = str_replace(&quot;   &quot;, &quot;&quot;, $buf);\n        $buf = str_replace(&quot;\\n&quot;, &quot;&quot;, $buf);\n        $buf = str_replace(chr(13), &quot;&quot;, $buf);\n    }\n}\n<\/pre>","raw_excerpt":"This plugin eases the use of SyntaxHighlighter by Alex Gorbatchev to highlight code snippets within WordPress.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/8526","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=8526"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/rarian"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=8526"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=8526"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=8526"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=8526"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=8526"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=8526"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}