{"id":4157,"date":"2008-12-02T21:53:39","date_gmt":"2008-12-02T21:53:39","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/github-gist-shortcode\/"},"modified":"2009-09-14T08:00:01","modified_gmt":"2009-09-14T08:00:01","slug":"github-gist-shortcode","status":"closed","type":"plugin","link":"https:\/\/nl-be.wordpress.org\/plugins\/github-gist-shortcode\/","author":940069,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"0.2","stable_tag":"trunk","tested":"2.8","requires":"2.5.1","requires_php":"","requires_plugins":"","header_name":"GitHub Gist Shortcode","header_author":"Paul William","header_description":"","assets_banners_color":"","last_updated":"2009-09-14 08:00:01","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/www.entropytheblog.com\/blog\/2008\/12\/wordpress-github-gist-shortcode-plugin\/","header_author_uri":"http:\/\/www.entropytheblog.com\/blog\/","rating":0,"author_block_rating":0,"active_installs":10,"downloads":2926,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[230,7823,15326,1673,80],"plugin_category":[43,56],"plugin_contributors":[92667],"plugin_business_model":[],"class_list":["post-4157","plugin","type-plugin","status-closed","hentry","plugin_tags-embed","plugin_tags-gist","plugin_tags-git","plugin_tags-github","plugin_tags-shortcode","plugin_category-customization","plugin_category-social-and-sharing","plugin_contributors-paul1999","plugin_committers-paul1999","plugin_committers-sdepold"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/github-gist-shortcode.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>Instead of embedding a <a href=\"http:\/\/gist.github.com\">GitHub Gist<\/a> (a <a href=\"http:\/\/pastie.org\/\">pastie<\/a> like service on steroids) by copying and pasting HTML you can simple embed it with a [gist] shortcode.<\/p>\n\n<p>For example, to embed the <a href=\"http:\/\/gist.github.com\/30948\">gist: 30948<\/a> enter this in a post or page:<\/p>\n\n<pre><code>[gist id=30948]\n<\/code><\/pre>\n\n<p>It is that simple.<\/p>\n\n<p>One problem with gists is that a search engine spiders (and users with javascript disabled) will not see your code in a blog entry. This plugin allows you to get around this by including text, such as content of the gist inside the shortcode. The text is wrapped inside these tags:<\/p>\n\n<pre><code>&lt;noscript&gt;&lt;code class=\"gist\"&gt;&lt;pre&gt;\n<\/code><\/pre>\n\n<p>You would use it like this:<\/p>\n\n<pre><code>[gist id=30948]\nputs hello_world_test;\ni = 0\n5.times do\n    i = i + 1\n    puts i\nend\n[\/gist]\n<\/code><\/pre>\n\n<p>The content inside a gist shortcode is optional.<\/p>\n\n<p>View the <a href=\"http:\/\/svn.wp-plugins.org\/github-gist-shortcode\/trunk\/CHANGELOG\">CHANGELOG<\/a> to see what has changed between versions.<\/p>\n\n<!--section=installation-->\n<p>1) Download the plugin zip file.<\/p>\n\n<p>2) Unzip.<\/p>\n\n<p>3) Upload the github_gist_shortcode directory to your wordpress plugin directory (\/wp-content\/plugins).<\/p>\n\n<p>4) Activate the plugin.<\/p>\n\n<p>5) Use the gist shortcode in your posts or pages<\/p>","raw_excerpt":"Allows the use of a simple shortcode to embed GitHub Gists in a post or page.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/nl-be.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/4157","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nl-be.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/nl-be.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/nl-be.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=4157"}],"author":[{"embeddable":true,"href":"https:\/\/nl-be.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/paul1999"}],"wp:attachment":[{"href":"https:\/\/nl-be.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=4157"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/nl-be.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=4157"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/nl-be.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=4157"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/nl-be.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=4157"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/nl-be.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=4157"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/nl-be.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=4157"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}