{"id":10901,"date":"2016-05-07T03:10:17","date_gmt":"2016-05-07T03:10:17","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/highlighted-code-extractor\/"},"modified":"2010-10-24T07:24:45","modified_gmt":"2010-10-24T07:24:45","slug":"highlighted-code-extractor","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/highlighted-code-extractor\/","author":7261521,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"","stable_tag":"0.1.1","tested":"3.0.5","requires":"2.5.0","requires_php":"","requires_plugins":"","header_name":"","header_author":"","header_description":"","assets_banners_color":"","last_updated":"2010-10-24 07:24:45","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/chen-w.com\/","header_plugin_uri":"","header_author_uri":"","rating":0,"author_block_rating":0,"active_installs":0,"downloads":852,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog","other_notes"],"tags":[],"upgrade_notice":{"":"<p>A brief Markdown Example\nOrdered list:<\/p>\n\n<ol>\n<li>Some feature<\/li>\n<li>Another feature<\/li>\n<li>Something else about the plugin<\/li>\n<\/ol>\n\n<p>Unordered list:<\/p>\n\n<ul>\n<li>something<\/li>\n<li>something else<\/li>\n<li>third thing<\/li>\n<\/ul>\n\n<p>Here&#039;s a link to [WordPress](http:\/\/wordpress.org\/ &quot;Your favorite software&quot;) and one to <a href=\"http:\/\/daringfireball.net\/projects\/markdown\/syntax\">Markdown&#039;s Syntax Documentation<\/a>.\nTitles are optional, naturally.<\/p>\n\n<pre><code>        &amp;quot;Markdown is what the parser uses to process much of the readme file&amp;quot;\n<\/code><\/pre>\n\n<p>Markdown uses email style notation for blockquotes and I&#039;ve been told:\n&gt; Asterisks for <em>emphasis<\/em>. Double it up  for <strong>strong<\/strong>.<\/p>","0.1.1":"<p>Upgrade notices describe the reason a user should upgrade.  No more than 300 characters.<\/p>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.1.0","0.1.1"],"block_files":[],"assets_screenshots":[],"screenshots":{"1":"This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Note that the screenshot is taken from the directory of the stable readme.txt, so in this case, <code>\/tags\/4.3\/screenshot-1.png<\/code> (or jpg, jpeg, gif)","2":"This is the second screen shot"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[],"plugin_category":[],"plugin_contributors":[],"plugin_business_model":[],"class_list":["post-10901","plugin","type-plugin","status-closed","hentry","plugin_committers-un44444444"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/highlighted-code-extractor.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>Extract the highlighted source code. \nBy this, we could do something with the source code. \nFor example, preview html code in new windows.<\/p>\n <p>A few notes about the sections above:<\/p>\n <ul>\n<li>Current version support preview html source code int new windos\/tab<\/li>\n<li>or copy the source code.<\/li>\n<\/ul>\n\n<!--section=installation-->\n<p>This section describes how to install the plugin and get it working.<\/p>\n <p>e.g.<\/p>\n <ol>\n<li>Upload <code>code_extractor<\/code> folder to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>Now plugin is ready to go<\/li>\n<\/ol>\n\n<!--section=faq-->\n<h4>A question that someone might have<\/h4>\n <p>An answer to that question.<\/p>\n <h4>What about foo bar?<\/h4>\n <p>Answer to foo bar dilemma.<\/p>\n\n<!--section=changelog-->\n<h4>0.1.0<\/h4>\n <ul>\n<li>Initial version that only support preview and copy html source code.<\/li>\n<\/ul>\n <h4>0.1.1<\/h4>\n <ul>\n<li>Add I18N support.<\/li>\n<\/ul>\n\n<!--section=other_notes-->\n<h3>Usage<\/h3>\n <p>we can use it when write posts. just add [extract][\/extract] to wrap the highlighted source code.<\/p>\n <p>e.g. [extract id=\"id1\"]<\/p>\n <pre>int main(){return 0;}<\/pre>\n <p>[\/extract] [extract id=\"id1\"][html][\/html][\/extract]<\/p>\n <h3>Arbitrary section<\/h3>\n <p>You may provide arbitrary sections, in the same format as the ones above.  This may be of use for extremely complicated plugins where more information needs to be conveyed that doesn't fit into the categories of \"description\" or \"installation.\"  Arbitrary sections will be shown below the built-in sections outlined above.<\/p>\n <h3>A brief Markdown Example<\/h3>\n <p>Ordered list:<\/p>\n <ol>\n<li>Some feature<\/li>\n<li>Another feature<\/li>\n<li>Something else about the plugin<\/li>\n<\/ol>\n <p>Unordered list:<\/p>\n <ul>\n<li>something<\/li>\n<li>something else<\/li>\n<li>third thing<\/li>\n<\/ul>\n <p>Here's a link to <a href=\"http:\/\/wordpress.org\/\" title=\"Your favorite software\">WordPress<\/a> and one to <a href=\"http:\/\/daringfireball.net\/projects\/markdown\/syntax\" title=\"Markdown is what the parser uses to process much of the readme file\">Markdown's Syntax Documentation<\/a>. Titles are optional, naturally.<\/p>\n <p>Markdown uses email style notation for blockquotes and I've been told:<\/p>\n <blockquote>\n  <p>Asterisks for <em>emphasis<\/em>. Double it up  for <strong>strong<\/strong>.<\/p>\n<\/blockquote>\n <pre><code>&lt;?php code(); \/\/ goes in backticks ?&gt; <\/code><\/pre>","raw_excerpt":"Extract the highlighted source code. By this, we could do something with the source code.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/10901","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=10901"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/un44444444"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=10901"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=10901"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=10901"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=10901"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=10901"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=10901"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}