{"id":31406,"date":"2014-08-29T22:17:48","date_gmt":"2014-08-29T22:17:48","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/wp-prism-syntax-highlighter\/"},"modified":"2014-09-07T12:13:43","modified_gmt":"2014-09-07T12:13:43","slug":"wp-prism-syntax-highlighter","status":"publish","type":"plugin","link":"https:\/\/twd.wordpress.org\/plugins\/wp-prism-syntax-highlighter\/","author":14017560,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0.5","stable_tag":"1.0.5","tested":"4.0.38","requires":"","requires_php":"","requires_plugins":"","header_name":"WP Prism Syntax Highlighter","header_author":"Lea Verou (Prism), Truchot Guillaume (WordPress Plugin)","header_description":"","assets_banners_color":"","last_updated":"2014-09-07 12:13:43","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/github.com\/GuiTeK\/wp-prism-syntax-highlighter","header_author_uri":"https:\/\/github.com\/GuiTeK","rating":5,"author_block_rating":0,"active_installs":30,"downloads":3874,"num_ratings":2,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":{"":"<p>This is pretty obvious. Upgrade to get rid of bugs and get all new features!<\/p>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":"2"},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.2","1.0.3","1.0.4","1.0.5"],"block_files":[],"assets_screenshots":{"screenshot-2.png":{"filename":"screenshot-2.png","revision":"1539052","resolution":"2","location":"plugin"},"screenshot-3.png":{"filename":"screenshot-3.png","revision":"1539052","resolution":"3","location":"plugin"},"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1539052","resolution":"1","location":"plugin"}},"screenshots":{"1":"Integrated code editor","2":"Highlighted C++ code","3":"Plugin settings"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[3986,4444,7527,48116,2207],"plugin_category":[],"plugin_contributors":[87620],"plugin_business_model":[],"class_list":["post-31406","plugin","type-plugin","status-publish","hentry","plugin_tags-highlight","plugin_tags-highlighter","plugin_tags-prism","plugin_tags-prismjs","plugin_tags-syntax","plugin_contributors-guitek","plugin_committers-guitek"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/wp-prism-syntax-highlighter.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/wp-prism-syntax-highlighter\/trunk\/screenshot-1.png?rev=1539052","caption":"Integrated code editor"},{"src":"https:\/\/ps.w.org\/wp-prism-syntax-highlighter\/trunk\/screenshot-2.png?rev=1539052","caption":"Highlighted C++ code"},{"src":"https:\/\/ps.w.org\/wp-prism-syntax-highlighter\/trunk\/screenshot-3.png?rev=1539052","caption":"Plugin settings"}],"raw_content":"<!--section=description-->\n<p><em>WP Prism Syntax Highlighter<\/em> enables you to use <a href=\"http:\/\/prismjs.com\">Prism<\/a> by <a href=\"http:\/\/lea.verou.me\">Lea Verou<\/a> in your WordPress blog.<\/p>\n\n<blockquote>\n  <p>Prism is a lightweight, extensible syntax highlighter, built with modern web standards in mind.<\/p>\n<\/blockquote>\n\n<ul>\n<li>It has an easy and convenient <strong>code editor<\/strong> integrated into the WordPress editor toolbar: you can insert code in just one click.<\/li>\n<li>It requires <strong>no configuration<\/strong> at all, however you can still customize the default settings in the plugin's settings page.<\/li>\n<\/ul>\n\n<p>It supports <em>all<\/em> Prism features, namely:<\/p>\n\n<ul>\n<li>Syntax highlighting (30+ languages)<\/li>\n<li>Custom themes (6 official themes)<\/li>\n<li>Plugins (7 official plugins: <a href=\"http:\/\/prismjs.com\/plugins\/line-highlight\">Line Highlight<\/a>, <a href=\"http:\/\/prismjs.com\/plugins\/line-numbers\">Line Numbers<\/a>, <a href=\"http:\/\/prismjs.com\/plugins\/show-invisibles\">Show Invisibles<\/a>, <a href=\"http:\/\/prismjs.com\/plugins\/autolinker\">Autolinker<\/a>, <a href=\"http:\/\/prismjs.com\/plugins\/wpd\">WebPlatform Docs<\/a>, <a href=\"http:\/\/prismjs.com\/plugins\/file-highlight\">File Highlight<\/a>, <a href=\"http:\/\/prismjs.com\/plugins\/show-language\">Show Language<\/a>)<\/li>\n<\/ul>\n\n<p><strong>NOTE: the plugin archive contains<\/strong><\/p>\n\n<ul>\n<li><strong><em>all<\/em> languages definitions<\/strong><\/li>\n<li><strong><em>no<\/em> plugin<\/strong><\/li>\n<li><strong><em>default<\/em> theme<\/strong><\/li>\n<\/ul>\n\n<p>It is recommended to use <strong>only what you need<\/strong> in order to keep the plugin the smallest possible.\nPlease download your custom Prism from http:\/\/prismjs.com\/download.html and upload the files in:<\/p>\n\n<ul>\n<li>your_plugin_directory\/wp-prism-syntax-highlighter\/css\/<\/li>\n<li>your_plugin_directory\/wp-prism-syntax-highlighter\/js\/\n<strong>Do NOT replace the original prism.css and prism.js, you will lose all your changes as they get overwritten when updating the plugin!<\/strong><\/li>\n<\/ul>\n\n<p><strong>Help<\/strong><br \/>\nWondering how to install the plugin? Visit the <em>Installation<\/em> page.\nWant to see the plugin in action? Click <em>Screenshot<\/em> above.\nGot any question? See the <em>FAQ<\/em>.<\/p>\n\n<p><strong>Contribute<\/strong><br \/>\nBoth Prism and this plugin are distributed under the MIT license and are developed during our free time. Any help, even a bug report, is much appreciated!\nTo contribute:<\/p>\n\n<ul>\n<li>Prism: https:\/\/github.com\/LeaVerou\/prism<\/li>\n<li>Plugin: https:\/\/github.com\/GuiTeK\/wp-prism-syntax-highlighter<\/li>\n<\/ul>\n\n<p><strong>Why another Prism plugin?<\/strong><br \/>\nIf you searched the plugin directory, you certainly noticed that there are several Prism plugins for WordPress. Well, none of them satisfied me: one plugin had no code editor, the other didn't escape HTML tags, another didn't have the options I needed... so I made a new one to suit my needs.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Download the plugin archive from https:\/\/wordpress.org\/plugins\/wp-prism-syntax-highlighter and unzip it<\/li>\n<li>Upload the wp-prism-syntax-highlighter folder to your plugin directory (usually wp-content\/plugins)<\/li>\n<li>Activate the plugin (<em>Plugins<\/em> &gt; <em>Installed Plugins<\/em>)<\/li>\n<li>If you get a warning from the plugin asking you to edit your theme, please do it as you might experience visual bugs (requires about 30 seconds of your time)<\/li>\n<li>Highlight some code!<\/li>\n<\/ol>\n\n<!--section=faq-->\n<p><strong>Q:<\/strong> how can I install WP Prism Syntax Highlighter?<br \/>\n<strong>A:<\/strong> please see the <em>Installation<\/em> page.<\/p>\n\n<p><strong>Q:<\/strong> what is the warning I get when I enable WP Prism Syntax Highlighter?<br \/>\n<strong>A:<\/strong> some themes (like the <em>Twenty<\/em> ones included into WordPress by default) already include some CSS to prettify code blocks. It might interfere with Prism and you might experience visual bugs. That's why it's recommended to comment out or remove any CSS code related to pre or code tags.<\/p>\n\n<p><strong>Q:<\/strong> how do I disable line wrap?<br \/>\n<strong>A:<\/strong> by default Prism does NOT wrap lines. It's certainly your theme's fault (<em>Twenty<\/em> themes are known to do that). Search for line like <code>word-wrap: break-word;<\/code> and comment it out.<\/p>\n\n<p><strong>Q:<\/strong> what to do if I encouter a bug?<br \/>\n<strong>A:<\/strong> please <a href=\"https:\/\/github.com\/GuiTeK\/wp-prism-syntax-highlighter\/issues\">open an issue<\/a>. However, make sure the bug is related to the plugin itself and not to Prism. If you think it's a Prism bug, please open an issue <a href=\"https:\/\/github.com\/LeaVerou\/prism\/issues\">here<\/a>.<\/p>\n\n<!--section=changelog-->\n<h4>1.0.5<\/h4>\n\n<ul>\n<li>Added custom settings for Prism CSS and JavaScript files, allowing the user to use its own version and thus preventing it from being overwritten when updating the plugin<\/li>\n<li>Fixed HTML escaping<\/li>\n<li>The editor plugin now adds a space after inline code, allowing the user to step out of the <code> tag<\/code><\/li>\n<li>Updated default Prism to the latest version<\/li>\n<li>Updated WordPress version to 4.0<\/li>\n<\/ul>\n\n<h4>1.0.4<\/h4>\n\n<ul>\n<li>Updated license<\/li>\n<\/ul>\n\n<h4>1.0.3<\/h4>\n\n<ul>\n<li>Updated readme.txt<\/li>\n<\/ul>\n\n<h4>1.0.2<\/h4>\n\n<ul>\n<li>Updated readme.txt<\/li>\n<\/ul>\n\n<h4>1.0.1<\/h4>\n\n<ul>\n<li>Updated readme.txt<\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Initial release<\/li>\n<\/ul>","raw_excerpt":"A lightweight and convenient plugin to integrate Prism Syntax Highlighter into WordPress.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/31406","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=31406"}],"author":[{"embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/guitek"}],"wp:attachment":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=31406"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=31406"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=31406"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=31406"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=31406"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=31406"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}