{"id":29293,"date":"2014-05-07T12:48:41","date_gmt":"2014-05-07T12:48:41","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/wp-syntax-highlighter\/"},"modified":"2014-08-07T14:23:08","modified_gmt":"2014-08-07T14:23:08","slug":"wp-syntax-highlighter","status":"publish","type":"plugin","link":"https:\/\/pcd.wordpress.org\/plugins\/wp-syntax-highlighter\/","author":13658547,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"0.5.1","stable_tag":"0.5.1","tested":"3.9.40","requires":"3.5.0","requires_php":"","requires_plugins":"","header_name":"wp-syntax-highlighter","header_author":"Darshan Sawardekar","header_description":"","assets_banners_color":"","last_updated":"2014-08-07 14:23:08","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/pressing-matters.io\/","header_plugin_uri":"http:\/\/wordpress.org\/plugins\/wp-syntax-highlighter","header_author_uri":"http:\/\/pressing-matters.io\/","rating":0,"author_block_rating":0,"active_installs":10,"downloads":2049,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":{"":"<ul>\n<li>WP-Syntax-Highlighter requires PHP 5.3.2+<\/li>\n<\/ul>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.1.2","0.2.0","0.2.1","0.2.2","0.3.0","0.4.0","0.5.0","0.5.1"],"block_files":[],"assets_screenshots":[],"screenshots":{"1":"Screenshot 1","2":"Screenshot 2"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[4443,71216,71217,7526],"plugin_category":[],"plugin_contributors":[88864],"plugin_business_model":[],"class_list":["post-29293","plugin","type-plugin","status-publish","hentry","plugin_tags-code-highlighter","plugin_tags-source-highlighter","plugin_tags-sourcecode-highlighter","plugin_tags-syntax-highlighter","plugin_contributors-dsawardekar","plugin_committers-dsawardekar"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/wp-syntax-highlighter.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>WP-Syntax-Highlighter is a WordPress plugin that brings the <a href=\"http:\/\/highlightjs.org\">Highlight.js<\/a> based source code syntax\nhighlighting to WordPress. This plugin is compatible with any other syntax highlighter\nplugins that use <a href=\"http:\/\/alexgorbatchev.com\/SyntaxHighlighter\/\">Syntax Highlighter<\/a>, <a href=\"http:\/\/qbnz.com\/highlighter\/\">GeSHi<\/a>\nor <a href=\"http:\/\/prismjs.com\">Prismjs<\/a>.<\/p>\n\n<h3>Credits<\/h3>\n\n<ul>\n<li>Thanks to Ivan Sagalaev and the <a href=\"http:\/\/highlightjs.org\/\">highlight.js<\/a> team for this excellent library.<\/li>\n<\/ul>\n\n<!--section=installation-->\n<ol>\n<li>Click Plugins &gt; Add New in the WordPress admin panel.<\/li>\n<li>Search for \"wp-syntax-highlighter\" and install.<\/li>\n<\/ol>\n\n<h3>Customization<\/h3>\n\n<p>The plugin comes bundled with all the themes provided by Highlight.js.\nUse the Theme dropdown to change the selected theme.<\/p>\n\n<p>Additionally the plugin checks for a <code>custom.css<\/code> in your current\ntheme's directory at <em>{current_theme}\/wp-syntax-highlighter\/custom.css<\/em>.<\/p>\n\n<p>If this CSS file is present it will be added to the page automatically.\nYou can override any builtin theme's styles in this manner.<\/p>\n\n<p>To use a completely custom theme use the <em>Custom<\/em> option in Theme\ndropdown. Now only your current theme's custom.css will be used to style\nthe code blocks.<\/p>\n\n<h3>Shortcodes<\/h3>\n\n<p>Each language gets it's own shortcode. You can use this to add code\nblocks for that language into your posts.<\/p>\n\n<p>For instance to add some PHP code into your post use,<\/p>\n\n<pre><code>        [php]\n        foreach ($requirements as $requirement) {\n          $result = array(\n            'satisfied' =&gt; $requirement-&gt;check(),\n            'requirement' =&gt; $requirement\n          );\n\n          array_push($results, $result);\n\n          if (!$result['satisfied']) {\n            $success = false;\n          }\n        }\n        [\/php]\n<\/code><\/pre>\n\n<h3>Supported Languages<\/h3>\n\n<p>The following languages are currently supported by highlight.js.<\/p>\n\n<ol>\n<li>1c<\/li>\n<li>Actionscript<\/li>\n<li>Apache<\/li>\n<li>Applescript<\/li>\n<li>Asciidoc<\/li>\n<li>Autohotkey<\/li>\n<li>Avrasm<\/li>\n<li>Axapta<\/li>\n<li>Bash<\/li>\n<li>Brainfuck<\/li>\n<li>Clojure<\/li>\n<li>Cmake<\/li>\n<li>Coffeescript<\/li>\n<li>Cpp<\/li>\n<li>CS<\/li>\n<li>CSS<\/li>\n<li>D<\/li>\n<li>Delphi<\/li>\n<li>Diff<\/li>\n<li>Django<\/li>\n<li>Dos<\/li>\n<li>Erlang<\/li>\n<li>Erlang-repl<\/li>\n<li>Fix<\/li>\n<li>Fsharp<\/li>\n<li>Glsl<\/li>\n<li>Go<\/li>\n<li>Haml<\/li>\n<li>Handlebars<\/li>\n<li>Haskell<\/li>\n<li>Http<\/li>\n<li>Ini<\/li>\n<li>Java<\/li>\n<li>Javascript<\/li>\n<li>JSON<\/li>\n<li>Lasso<\/li>\n<li>Lisp<\/li>\n<li>Livecodeserver<\/li>\n<li>Lua<\/li>\n<li>Makefile<\/li>\n<li>Markdown<\/li>\n<li>Mathematica<\/li>\n<li>Matlab<\/li>\n<li>Mel<\/li>\n<li>Mizar<\/li>\n<li>Nginx<\/li>\n<li>ObjectiveC<\/li>\n<li>Ocaml<\/li>\n<li>Oxygene<\/li>\n<li>Parser3<\/li>\n<li>Perl<\/li>\n<li>Php<\/li>\n<li>Profile<\/li>\n<li>Python<\/li>\n<li>R<\/li>\n<li>Rib<\/li>\n<li>Rsl<\/li>\n<li>Ruby<\/li>\n<li>Ruleslanguage<\/li>\n<li>Rust<\/li>\n<li>Scala<\/li>\n<li>Scilab<\/li>\n<li>SCSS<\/li>\n<li>Smalltalk<\/li>\n<li>SQL<\/li>\n<li>Tex<\/li>\n<li>Vala<\/li>\n<li>Vbnet<\/li>\n<li>Vbscript<\/li>\n<li>Vhdl<\/li>\n<li>XML<\/li>\n<\/ol>\n\n<p>Note: Since WordPress shortcodes must be at least 2 characters long, for\nlanguage names shorter than 2 characters use the <code>lang<\/code> suffix.<\/p>\n\n<p>Eg:- [dlang][\/dlang]<\/p>\n\n<h3>Compatibility with other Syntax Highlighters<\/h3>\n\n<p>The plugin is completely compatible with other syntax highlighters.\nIt does not change the content of your existing posts. You can safely go\nback to use your previous syntax highlighter after trying out\nwp-syntax-highlighter.<\/p>\n\n<p>Both <a href=\"http:\/\/alexgorbatchev.com\/SyntaxHighlighter\/\">Syntax Highlighter<\/a> and <a href=\"http:\/\/qbnz.com\/highlighter\/\">GeSHi<\/a>\nand supported by default. <a href=\"http:\/\/prismjs.com\/\">Prism<\/a> based syntax highlighters will also\nwork out of the box as they utilize the same markup as Highlight.js.<\/p>\n\n<!--section=faq-->\n<ul>\n<li>Can I go back to my previous syntax highlighter plugin after using\nthis?<\/li>\n<\/ul>\n\n<p>Yes. The code block scanning is done clientside by highlight.js. The\ncontents of your posts are only scanned to pick any embedded languages.<\/p>\n\n<!--section=changelog-->\n<h4>0.5.1<\/h4>\n\n<ul>\n<li>Upgrades to Arrow 1.8.0.<\/li>\n<\/ul>\n\n<h4>0.5.0<\/h4>\n\n<ul>\n<li>Upgrades to Arrow 1.6.0.<\/li>\n<li>Updates Highlight.js to 8.1.<\/li>\n<li>Refreshes themes from Highlight.js repository.<\/li>\n<li>Cleaner build without development assets.<\/li>\n<\/ul>\n\n<h4>0.4.0<\/h4>\n\n<ul>\n<li>Upgrades to Arrow 0.7.0<\/li>\n<\/ul>\n\n<h4>0.3.0<\/h4>\n\n<ul>\n<li>Upgrades to Arrow 0.3.0.<\/li>\n<\/ul>\n\n<h4>0.2.2<\/h4>\n\n<ul>\n<li>Fixes typos.<\/li>\n<\/ul>\n\n<h4>0.2.1<\/h4>\n\n<ul>\n<li>Upgrades Arrow to 0.4.1.<\/li>\n<\/ul>\n\n<h4>0.2.0<\/h4>\n\n<ul>\n<li>Switches to Arrow 0.4.0.<\/li>\n<\/ul>\n\n<h4>0.1.2<\/h4>\n\n<ul>\n<li>First release on wordpress.org<\/li>\n<\/ul>\n\n<h4>0.1.0<\/h4>\n\n<ul>\n<li>Initial Release<\/li>\n<\/ul>","raw_excerpt":"Syntax Highlighter for WordPress using Highlight.js.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/29293","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=29293"}],"author":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/dsawardekar"}],"wp:attachment":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=29293"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=29293"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=29293"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=29293"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=29293"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=29293"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}