{"id":2321,"date":"2007-12-18T08:37:56","date_gmt":"2007-12-18T08:37:56","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/syntaxhighlighter-plus\/"},"modified":"2010-06-03T21:37:25","modified_gmt":"2010-06-03T21:37:25","slug":"syntaxhighlighter-plus","status":"publish","type":"plugin","link":"https:\/\/tah.wordpress.org\/plugins\/syntaxhighlighter-plus\/","author":305295,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0b2","stable_tag":"trunk","tested":"","requires":"2.0","requires_php":"","requires_plugins":"","header_name":"SyntaxHighlighter Plus","header_author":"<a href=\"http:\/\/thislab.com\/\">Fred Wu<\/a>","header_description":"","assets_banners_color":"","last_updated":"2010-06-03 21:37:25","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/thislab.com\/2007\/12\/16\/release-wordpress-plugin-syntaxhighlighter-plus\/","header_author_uri":"","rating":5,"author_block_rating":0,"active_installs":100,"downloads":39758,"num_ratings":1,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":"1"},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.10","0.11","0.12","0.13","0.14","0.15","0.15a","0.15b","0.16","0.17","0.18","1.0b1","1.0b2"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[1214,229,662,8747,9663],"plugin_category":[59],"plugin_contributors":[83417],"plugin_business_model":[],"class_list":["post-2321","plugin","type-plugin","status-publish","hentry","plugin_tags-code","plugin_tags-javascript","plugin_tags-php","plugin_tags-source","plugin_tags-sourcecode","plugin_category-utilities-and-tools","plugin_contributors-fredwu","plugin_committers-fredwu"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/syntaxhighlighter-plus.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>SyntaxHighlighter Plus is a Wordpress plugin for code syntax highlighting. It is an enhanced version of the original SyntaxHighlighter by Matt, Viper007Bond and mdawaffe. Please give them a big applause for making such a great plugin!<\/p>\n\n<p>SyntaxHighlighter allows you to easily post syntax highlighted code all without loosing it's formatting or making an manual changes.<\/p>\n\n<p>It supports the following languages (the alias for use in the post is listed next to the name):<\/p>\n\n<ul>\n<li>Bash -- <code>bash<\/code>, <code>sh<\/code><\/li>\n<li>C++ -- <code>cpp<\/code>, <code>c<\/code>, <code>c++<\/code><\/li>\n<li>C# -- <code>c#<\/code>, <code>c-sharp<\/code>, <code>csharp<\/code><\/li>\n<li>CSS -- <code>css<\/code><\/li>\n<li>Delphi -- <code>delphi<\/code>, <code>pascal<\/code><\/li>\n<li>Diff -- <code>diff<\/code><\/li>\n<li>Groovy -- <code>groovy<\/code><\/li>\n<li>Java -- <code>java<\/code><\/li>\n<li>JavaScript -- <code>js<\/code>, <code>jscript<\/code>, <code>javascript<\/code><\/li>\n<li>Perl -- <code>perl<\/code>, <code>pl<\/code><\/li>\n<li>PHP -- <code>php<\/code><\/li>\n<li>Plain text -- <code>plain<\/code>, <code>text<\/code><\/li>\n<li>Python -- <code>py<\/code>, <code>python<\/code><\/li>\n<li>Ruby -- <code>rb<\/code>, <code>ruby<\/code>, <code>rails<\/code>, <code>ror<\/code><\/li>\n<li>Scala -- <code>scala<\/code><\/li>\n<li>SQL -- <code>sql<\/code><\/li>\n<li>VB -- <code>vb<\/code>, <code>vb.net<\/code><\/li>\n<li>XML\/HTML -- <code>xml<\/code>, <code>html<\/code>, <code>xhtml<\/code>, <code>xslt<\/code><\/li>\n<\/ul>\n\n<p>This plugin uses the <a href=\"http:\/\/code.google.com\/p\/syntaxhighlighter\/\">SyntaxHighlighter JavaScript package by Alex Gorbatchev<\/a>.<\/p>\n\n<h3>Other BBCode Methods<\/h3>\n\n<p>Find <code>[sourcecode language='css']code here[\/sourcecode]<\/code> too long to type? Here's some alternative examples:<\/p>\n\n<ul>\n<li><code>[source language='css']code here[\/source]<\/code><\/li>\n<li><code>[code language='css']code here[\/code]<\/code><\/li>\n<li><code>[sourcecode lang='css']code here[\/sourcecode]<\/code><\/li>\n<li><code>[source lang='css']code here[\/source]<\/code><\/li>\n<li><code>[code lang='css']code here[\/code]<\/code><\/li>\n<li><code>[sourcecode='css']code here[\/sourcecode]<\/code><\/li>\n<li><code>[source='css']code here[\/source]<\/code><\/li>\n<li><code>[code='css']code here[\/code]<\/code><\/li>\n<li><code>[lang='css']code here[\/lang]<\/code><\/li>\n<li><code>[css]code here[\/css]<\/code> (or any of the supported language)<\/li>\n<\/ul>\n\n<p>Note: Quotation marks around the language can be omitted for even shorter and neater syntax. :-)<\/p>\n\n<!--section=installation-->\n<h3>Updgrading From A Previous Version<\/h3>\n\n<p>To upgrade from a previous version of this plugin, delete the entire folder and files from the previous version of the plugin and then follow the installation instructions below.<\/p>\n\n<ul>\n<li>Starting from Wordpress 2.7, plugin upgrades are handled by Wordpress, there is no need to manually upload files.<\/li>\n<\/ul>\n\n<p>Important: If you have made any changes to the CSS file, please make sure to back it up before upgrade!<\/p>\n\n<h3>Uploading The Plugin<\/h3>\n\n<p>Extract all files from the ZIP file, making sure to keep the file structure intact, and then upload it to <code>\/wp-content\/plugins\/<\/code>.<\/p>\n\n<p>This should result in the following file structure:<\/p>\n\n<pre><code>- wp-content\n    - plugins\n        - syntaxhighlighter-plus\n            | readme.txt\n            | syntaxhighlighter.php\n            - syntaxhighlighter\n                - scripts\n                    | clipboard.swf\n                    | shBrushBash.js\n                    | shBrushCpp.js\n                    | shBrushCSharp.js\n                    | [...]\n                    | shCore.js\n                    | shLegacy.js\n                - src\n                    | shCore.js\n                    | shLegacy.js\n                - styles\n                    | SyntaxHighlighter.css\n<\/code><\/pre>\n\n<p><strong>See Also:<\/strong> <a href=\"http:\/\/codex.wordpress.org\/Managing_Plugins#Installing_Plugins\">\"Installing Plugins\" article on the WP Codex<\/a><\/p>\n\n<h3>Plugin Activation<\/h3>\n\n<p>Go to the admin area of your WordPress install and click on the \"Plugins\" menu. Click on \"Activate\" for the \"SyntaxHighlighter\" plugin.<\/p>\n\n<h3>Plugin Usage<\/h3>\n\n<p>Just wrap your code in <code>[sourcecode language='css']code here[\/sourcecode]<\/code>. The language attribute is <strong>required<\/strong>! See the <a href=\"http:\/\/wordpress.org\/extend\/plugins\/syntaxhighlighter\/\">plugin's description<\/a> for a list of valid language attributes.<\/p>\n\n<!--section=faq-->\n<dl>\n<dt>The BBCode in my post is being replaced with &lt;pre&gt;'s just fine, but I don't see the syntax highlighting!<\/dt>\n<dd><p>Make sure your theme's footer has <code>&lt;?php wp_footer(); ?&gt;<\/code> somewhere in it, otherwise the JavaScript highlighting files won't be loaded.<\/p><\/dd>\n<dt>I still see the BBCode in my post. What gives?<\/dt>\n<dd><p>Make sure you correctly use the BBCode with a valid language attribute. A malformed usage of it won't result in replacement.<\/p><\/dd>\n<dt>I use the visual editor, my code has lots of line breaks inserted, what do I do?<\/dt>\n<dd><p>Use 'shift + return' instead of 'return' when changing lines.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<p><strong>Version 1.0b2<\/strong><\/p>\n\n<ul>\n<li>Upgraded SyntaxHighlighter to 2.0.296<\/li>\n<li>Added automatic SSL detection (thanks to g30rg3_x)<\/li>\n<li>Added anti-XSS and XSRF (thanks to g30rg3_x)<\/li>\n<li>Language aliases fix<\/li>\n<li>Code clean up<\/li>\n<\/ul>\n\n<p><strong>Version 1.0b1<\/strong><\/p>\n\n<ul>\n<li>Upgraded the core engine to SyntaxHighlighter 2.0<\/li>\n<li>Added configuration: themes<\/li>\n<\/ul>\n\n<p><strong>Version 0.18<\/strong><\/p>\n\n<ul>\n<li>Added PHP as the default language if no language is specified (e.g. <code>[code][\/code]<\/code>)<\/li>\n<\/ul>\n\n<p><strong>Version 0.17<\/strong><\/p>\n\n<ul>\n<li>Fixed a bug in the Bash highlighting code which caused conflicts between keywords and variables highlights<\/li>\n<\/ul>\n\n<p><strong>Version 0.16<\/strong><\/p>\n\n<ul>\n<li>Ported SyntaxHighlighter 1.1.1 changes: 'Encode single quotes so <code>wptexturize()<\/code> doesn't transform them into fancy quotes and screw up code.'<\/li>\n<\/ul>\n\n<p><strong>Version 0.15b<\/strong><\/p>\n\n<ul>\n<li>CSS fixes for IE6<\/li>\n<\/ul>\n\n<p><strong>Version 0.15a<\/strong><\/p>\n\n<ul>\n<li>enhanced CSS<\/li>\n<\/ul>\n\n<p><strong>Version 0.15<\/strong><\/p>\n\n<ul>\n<li>Fixed the IE scroll bar issue (backup your CSS file before upgrade!)<\/li>\n<\/ul>\n\n<p><strong>Version 0.14<\/strong><\/p>\n\n<ul>\n<li>Added support for Bash (thanks to <a href=\"http:\/\/www.cmdln.org\/2008\/04\/07\/syntaxhighlighter-plus-patch\/\">Nick Anderson<\/a>)<\/li>\n<li>Now supports Wordpress MU (thanks to <a href=\"http:\/\/tim.diary.tw\/2008\/03\/05\/syntaxhighlighter-plus\/\">Tim<\/a>)<\/li>\n<\/ul>\n\n<p><strong>Version 0.13<\/strong><\/p>\n\n<ul>\n<li>Changed plugin folder to 'syntaxhighlighter-plus'.<\/li>\n<\/ul>\n\n<p><strong>Version 0.12 (broken)<\/strong><\/p>\n\n<ul>\n<li>Appeared on the Wordpress plugins site.<\/li>\n<li>Fixed readme.txt.<\/li>\n<li>Cleaned up the files.<\/li>\n<\/ul>\n\n<p><strong>Version 0.11<\/strong><\/p>\n\n<ul>\n<li>Added more syntax variants.<\/li>\n<\/ul>\n\n<p><strong>Version 0.10<\/strong><\/p>\n\n<ul>\n<li>Initial release!<\/li>\n<\/ul>","raw_excerpt":"Easily post source code such as PHP or HTML and display it in a styled box.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/2321","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=2321"}],"author":[{"embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/fredwu"}],"wp:attachment":[{"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=2321"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=2321"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=2321"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=2321"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=2321"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=2321"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}