{"id":5035,"date":"2009-03-15T15:49:28","date_gmt":"2009-03-15T15:49:28","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/syntaxhighlighter2\/"},"modified":"2010-05-30T14:58:41","modified_gmt":"2010-05-30T14:58:41","slug":"syntaxhighlighter2","status":"publish","type":"plugin","link":"https:\/\/twd.wordpress.org\/plugins\/syntaxhighlighter2\/","author":1745922,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"2.1.2","stable_tag":"trunk","tested":"3.0.0","requires":"2.0","requires_php":"","requires_plugins":"","header_name":"SyntaxHighlighter2","header_author":"S H Mohanjith","header_description":"","assets_banners_color":"","last_updated":"2010-05-30 14:58:41","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/mohanjith.com\/c\/wordpress","header_plugin_uri":"http:\/\/mohanjith.com\/wordpress\/syntaxhighlighter2.html","header_author_uri":"http:\/\/mohanjith.com\/","rating":0,"author_block_rating":0,"active_installs":20,"downloads":8111,"num_ratings":0,"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":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["2.0.0","2.0.5"],"block_files":[],"assets_screenshots":[],"screenshots":{"1":"Example code display. Theme default.","2":"Example code display. Theme django.","3":"Example code display. Theme emacs.","4":"Example code display. Theme fadetogrey.","5":"Example code display. Theme midnight.","6":"Example code display. Theme rdark.","7":"Example code display. Theme eclipse."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[1214,246,662,9663,1652],"plugin_category":[59],"plugin_contributors":[84360],"plugin_business_model":[],"class_list":["post-5035","plugin","type-plugin","status-publish","hentry","plugin_tags-code","plugin_tags-html","plugin_tags-php","plugin_tags-sourcecode","plugin_tags-xhtml","plugin_category-utilities-and-tools","plugin_contributors-mohanjith","plugin_committers-mohanjith"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/syntaxhighlighter2.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>SyntaxHighlighter2 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>AS3 -- <code>as<\/code>, <code>as3<\/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>ColdFusion - <code>cf<\/code>, <code>coldfusion<\/code><\/li>\n<li>CSS -- <code>css<\/code><\/li>\n<li>Delphi -- <code>delphi<\/code>, <code>pascal<\/code><\/li>\n<li>Diff\/Patches -- <code>diff<\/code><\/li>\n<li>Erlang -- <code>erlang<\/code><\/li>\n<li>Groovy -- <code>groovy<\/code><\/li>\n<li>Java -- <code>java<\/code><\/li>\n<li>JavaFX -- <code>javafx<\/code><\/li>\n<li>JavaScript -- <code>js<\/code>, <code>jscript<\/code>, <code>javascript<\/code><\/li>\n<li>Perl -- <code>perl<\/code><\/li>\n<li>PHP -- <code>php<\/code><\/li>\n<li>Plain text -- <code>plain<\/code><\/li>\n<li>PowerShell -- <code>powershell<\/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:\/\/alexgorbatchev.com\/wiki\/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><p><code>[code language='css']code here[\/code]<\/code><\/p><\/li>\n<li><p><code>[sourcecode lang='css']code here[\/sourcecode]<\/code><\/p><\/li>\n<li><code>[source lang='css']code here[\/source]<\/code><\/li>\n<li><p><code>[code lang='css']code here[\/code]<\/code><\/p><\/li>\n<li><p><code>[sourcecode='css']code here[\/sourcecode]<\/code><\/p><\/li>\n<li><code>[source='css']code here[\/source]<\/code><\/li>\n<li><code>[code='css']code here[\/code]<\/code><\/li>\n<\/ul>\n\n<h3>PHP Version<\/h3>\n\n<p>PHP 5+<\/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<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        - syntaxhighlighter2\n            | readme.txt\n            | screenshot-1.png\n            | syntaxhighlighter2.php\n            - files\n                | clipboard.swf\n                | shBrushCpp.js\n                | shBrushCSharp.js\n                | [...]\n                | shCore.js\n                | wrapping.png\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>Is this plugin licensed under GPL?<\/dt>\n<dd><p>Yes, like most plugins in the WordPress plugin directory, if not all. However the SyntaxHighligter javascript library is licensed under LGPLv3.<\/p><\/dd>\n<dt>Can I hide the toolbar, ruler, etc?<\/dt>\n<dd><p>Yes, you can give any of the options mentioned in http:\/\/alexgorbatchev.com\/wiki\/SyntaxHighlighter:Configuration#SyntaxHighlighter.defaults\nas option attribute. See example bellow.<\/p>\n\n<pre><code>[sourcecode language='css' option='toolbar: false;']code here[\/sourcecode]\n<\/code><\/pre><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<p><strong>Version 2.1.2<\/strong><\/p>\n\n<ul>\n<li>Compatibility with WordPress 3.0<\/li>\n<\/ul>\n\n<p><strong>Version 2.1.1<\/strong><\/p>\n\n<ul>\n<li>Styling issue after upgrade<\/li>\n<li>Theme Eclipse added<\/li>\n<\/ul>\n\n<p><strong>Version 2.1.0<\/strong><\/p>\n\n<ul>\n<li>Upgraded to SyntaxHighlighter 2.1.364<\/li>\n<\/ul>\n\n<p><strong>Version 2.0.6<\/strong><\/p>\n\n<ul>\n<li>Options are not always picked up properly<\/li>\n<\/ul>\n\n<p><strong>Version 2.0.5<\/strong><\/p>\n\n<ul>\n<li>Brush not found alert shown in admin section when there is code in user comment<\/li>\n<li>If there is no space between ' and ] parser fails<\/li>\n<\/ul>\n\n<p><strong>Version 2.0.4<\/strong><\/p>\n\n<ul>\n<li>Allow for options. Hide the toolbar, ruler, etc.<\/li>\n<li>Select whether to apply the code highlighting to user comments in 'Settings' -&gt; 'SyntaxHighlighter2'<\/li>\n<\/ul>\n\n<p><strong>Version 2.0.3<\/strong><\/p>\n\n<ul>\n<li>Added bash (shell, sh) and patch syntax<\/li>\n<\/ul>\n\n<p><strong>Version 2.0.2<\/strong><\/p>\n\n<ul>\n<li>Mention license in readme.txt<\/li>\n<\/ul>\n\n<p><strong>Version 2.0.1<\/strong><\/p>\n\n<ul>\n<li>GPL credits<\/li>\n<\/ul>\n\n<p><strong>Version 2.0.0<\/strong><\/p>\n\n<ul>\n<li>Added support for theming<\/li>\n<li>Plugin options page to choose the theme<\/li>\n<li>Added visibility to properties and methods<\/li>\n<\/ul>\n\n<p><strong>Version 1.1.1 (SyntaxHighlighter)<\/strong><\/p>\n\n<ul>\n<li>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 1.1.0 (SyntaxHighlighter)<\/strong><\/p>\n\n<ul>\n<li>mdawaffe <a href=\"http:\/\/dev.wp-plugins.org\/ticket\/703\">fixed<\/a> an encoding issue relating to kses and users without the <code>unfiltered_html<\/code> capability. Mad props to mdawaffe.<\/li>\n<\/ul>\n\n<p><strong>Version 1.0.1 (SyntaxHighlighter)<\/strong><\/p>\n\n<ul>\n<li>Minor CSS fixes.<\/li>\n<li>Filter text widgets to allow posting of code.<\/li>\n<\/ul>\n\n<p><strong>Version 1.0.0 (SyntaxHighlighter)<\/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:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/5035","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=5035"}],"author":[{"embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/mohanjith"}],"wp:attachment":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=5035"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=5035"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=5035"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=5035"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=5035"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=5035"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}