{"id":165262,"date":"2022-11-09T13:38:05","date_gmt":"2022-11-09T13:38:05","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/prismjs-wp\/"},"modified":"2022-11-09T13:40:32","modified_gmt":"2022-11-09T13:40:32","slug":"syntax-highlighter-prismjs","status":"publish","type":"plugin","link":"https:\/\/twd.wordpress.org\/plugins\/syntax-highlighter-prismjs\/","author":9830059,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"0.0.1","stable_tag":"0.0.1","tested":"6.1.10","requires":"","requires_php":"","requires_plugins":"","header_name":"Syntax Highlighter with PrismJS","header_author":"Mohamad Wael El Kurdi","header_description":"Syntax Highlighter using prismjs","assets_banners_color":"","last_updated":"2022-11-09 13:40:32","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/www.paypal.com\/donate?hosted_button_id=QHHP2H5JN358N","header_plugin_uri":"https:\/\/difyel.com\/","header_author_uri":"https:\/\/www.difyel.com","rating":0,"author_block_rating":0,"active_installs":0,"downloads":2756,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["changelog","description"],"tags":{"0.0.1":{"tag":"0.0.1","author":"mwaelk","date":"2022-11-09 13:40:32"}},"upgrade_notice":[],"ratings":[],"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.0.1"],"block_files":[],"assets_screenshots":[],"screenshots":{"1":"Python with lines numbers and lines highlight","2":"Java without line numbers","3":"Java with rainbow braces and line numbers","4":"Code escaped automatically"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[4444,7527,7526],"plugin_category":[],"plugin_contributors":[86245],"plugin_business_model":[],"class_list":["post-165262","plugin","type-plugin","status-publish","hentry","plugin_tags-highlighter","plugin_tags-prism","plugin_tags-syntax-highlighter","plugin_contributors-mwaelk","plugin_committers-mwaelk"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/syntax-highlighter-prismjs.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=changelog-->\n<h4>0.0.1<\/h4>\n\n<ul>\n<li>initial release.<\/li>\n<\/ul>\n\n<!--section=description-->\n<p>A syntax highlighter using PrismJs.<\/p>\n\n<h3>How To Use<\/h3>\n\n<p>Wrap your pre tag as shown below:<\/p>\n\n<pre>\n[sh_prismjs_pre class=\"language-py line-numbers match-braces rainbow-braces\" data_line=\"1,4-5,7\" escape_html='escape']\n&lt;pre&gt;    \nclass Implements_Ne:\n    ''' A class which implements \n        the __ne__ method '''\n    def __ne__( self, other):\n        return False\n\nclass Not_Implements_Ne:\n    ''' A class which does not\n        implement the __ne__\n        method '''\n    pass\n&lt;\/pre&gt;\n[\/sh_prismjs_pre]\n<\/pre>\n\n<ul>\n<li>Replace name in language-NAME, by the name of the language that you wish to highlight. For example if the language is python, language-NAME should become language-py .<\/li>\n<li>If you wish line numbers to appear, use line-numbers . <\/li>\n<li>If you wish braces to be matched when selected use match-braces . <\/li>\n<li>If you wish to have rainbow braces use rainbow-braces . <\/li>\n<li>If you wish to highlight lines, you can use data_line, so in the example provided, colorize line 1, and colorize lines from 4 to 5, and colorize line 7. <\/li>\n<li>If you wish the content of the pre to be escaped, so for example if it contains html tags that you do not wish to be rendered, you can use escape_html='escape'<\/li>\n<\/ul>\n\n<p>For code tags, they also should be wrapped as follows:<\/p>\n\n<pre>\n[sh_prismjs_code class=\"language-html\" escape_html='escape']&lt;code&gt;tag: &lt;br\/&gt;&lt;\/code&gt;[\/sh_prismjs_code]\n<\/pre>\n\n<p>You must use the language-Name option, and you can use the escape_html option.<\/p>","raw_excerpt":"A syntax highlighter using PrismJs.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/165262","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=165262"}],"author":[{"embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/mwaelk"}],"wp:attachment":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=165262"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=165262"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=165262"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=165262"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=165262"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=165262"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}