{"id":14583,"date":"2011-08-23T14:36:17","date_gmt":"2011-08-23T14:36:17","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/wp-github-gist\/"},"modified":"2021-10-13T12:18:01","modified_gmt":"2021-10-13T12:18:01","slug":"wp-github-gist","status":"publish","type":"plugin","link":"https:\/\/szl.wordpress.org\/plugins\/wp-github-gist\/","author":97421,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"0.5","stable_tag":"0.5","tested":"5.8.13","requires":"2.8","requires_php":"","requires_plugins":"","header_name":"WP Github Gist","header_author":"Sudar","header_description":"","assets_banners_color":"","last_updated":"2021-10-13 12:18:01","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/sudarmuthu.com\/if-you-wanna-thank-me","header_plugin_uri":"http:\/\/sudarmuthu.com\/wordpress\/wp-github-gist","header_author_uri":"http:\/\/sudarmuthu.com\/","rating":1,"author_block_rating":0,"active_installs":40,"downloads":4961,"num_ratings":1,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":{"0.1":{"tag":"0.1","author":"sudar","date":"2011-08-23 14:37:41"},"0.2":{"tag":"0.2","author":"sudar","date":"2012-05-02 15:53:32"},"0.3":{"tag":"0.3","author":"sudar","date":"2012-05-31 06:51:35"},"0.4":{"tag":"0.4","author":"sudar","date":"2014-07-11 11:56:50"},"0.5":{"tag":"0.5","author":"sudar","date":"2021-10-13 12:18:01"}},"upgrade_notice":{"0.5":"<p>Added the ability to specify the height for gists and github embeds<\/p>","0.4":"<p>Handle changes in github gist embed code<\/p>"},"ratings":{"1":"1","2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.1","0.2","0.3","0.4","0.5"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[230,7823,1673],"plugin_category":[56],"plugin_contributors":[78271],"plugin_business_model":[],"class_list":["post-14583","plugin","type-plugin","status-publish","hentry","plugin_tags-embed","plugin_tags-gist","plugin_tags-github","plugin_category-social-and-sharing","plugin_contributors-sudar","plugin_committers-sudar"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/wp-github-gist.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>WP Github Gist WordPress Plugin, provides the ability to embed gist and files from Github in your blog posts or pages. Even though Github doesn't provide a way to embed files, this Plugin still works by using the gist-it service.<\/p>\n\n<h3>Features<\/h3>\n\n<h4>Embed Gist<\/h4>\n\n<p>To embed a gist you have to use the following shortcode<\/p>\n\n<pre><code>[gist id = \"{GIST_ID}\" file = \"{GIST_FILE}\" width = \"{WIDTH}\" height = \"{HEIGHT}\"]\n<\/code><\/pre>\n\n<p>The following are the different attributes that you can use in the shortcode<\/p>\n\n<ul>\n<li><code>id<\/code> - Id of your gist.<\/li>\n<li><code>file<\/code> - File inside gist that you want to display. If there is only one file in the gist, then you can ignore this.<\/li>\n<li><code>width<\/code> - Width of the code wrapper. Default is <code>100%<\/code>.<\/li>\n<li><code>height<\/code> - Height of the code wrapper. Default is <code>100%<\/code>.<\/li>\n<\/ul>\n\n<p>eg: <code>[gist id = \"12345\" file = \"myfile\" width = \"100%\" height = \"100%\"]<\/code><\/p>\n\n<h4>Embed Github files<\/h4>\n\n<p>To embed a github file you have to use the following shortcode<\/p>\n\n<pre><code>[github file = \"{GITHUB_FILE}\" start_line = \"{START_LINE}\" end_line = \"{END_LINE}\"]\n<\/code><\/pre>\n\n<ul>\n<li><code>{GITHUB_FILE}<\/code> - full path to your github file. eg: If you want to embed https:\/\/github.com\/sudar\/MissileLauncher\/blob\/master\/MissileLauncher.cpp then <code>{GITHUB_FILE}<\/code> would be \/sudar\/MissileLauncher\/blob\/master\/MissileLauncher.cpp<\/li>\n<li><code>{START_LINE}<\/code> - If you want to embed only part of the file, then you can specify the starting line number (optional)<\/li>\n<li><code>{END_LINE}<\/code> - If you want to embed only part of the file, then you can specify the ending line number (optional)<\/li>\n<\/ul>\n\n<p>eg: <code>[github file = \"\/sudar\/MissileLauncher\/blob\/master\/MissileLauncher.cpp\"]<\/code><\/p>\n\n<p>if you want to embed only part of the file, then you can specify the start and end line as well<\/p>\n\n<pre><code>[github file = \"\/sudar\/MissileLauncher\/blob\/master\/MissileLauncher.cpp\" start_line = \"10\" end_line = \"20\"]\n<\/code><\/pre>\n\n<h3>Changing Gist-it server<\/h3>\n\n<p>By default, this Plugin uses my own <a href=\"http:\/\/gist-it.sudarmuthu.com\">gist-it server<\/a> which is hosted on a free Google App Engine account. If you expect significant amount of traffic to your blog, then do consider using your own gist-it server. You can follow the <a href=\"http:\/\/sudarmuthu.com\/wordpress\/wp-github-gist\/changing-gist-it-server\">instructions to deploy your own gist-it server<\/a> and then go to the settings page to change the url.<\/p>\n\n<h3>Translation<\/h3>\n\n<p>The pot file is available with the Plugin. If you are willing to do translation for the Plugin, use the pot file to create the .po files for your language and let me know. I will add it to the Plugin after giving credit to you.<\/p>\n\n<h3>Support<\/h3>\n\n<p>Support for the Plugin is available from the <a href=\"http:\/\/sudarmuthu.com\/wordpress\/wp-github-gist\">Plugin's home page<\/a>. If you have any questions or suggestions, do leave a comment there or contact me in <a href=\"http:\/\/twitter.com\/sudarmuthu\">twitter<\/a>.<\/p>\n\n<h3>Readme Generator<\/h3>\n\n<p>This Readme file was generated using <a href='http:\/\/sudarmuthu.com\/wordpress\/wp-readme'>wp-readme<\/a>, which generates readme files for WordPress Plugins.<\/p>\n\n<!--section=installation-->\n<p>Extract the zip file and just drop the contents in the wp-content\/plugins\/ directory of your WordPress installation and then activate the Plugin from Plugins page.<\/p>\n\n<!--section=changelog-->\n<h4>0.5 (2015-08-01) (Dev time: 1 hours)<\/h4>\n\n<ul>\n<li>New: Add 'height' parameter to specify the height of gist and github embeds<\/li>\n<\/ul>\n\n<h4>0.4 (2014-07-11) (Dev time: 3 hours)<\/h4>\n\n<ul>\n<li><p>Fix: Handle changes in github gist embed code<\/p><\/li>\n<li><p>Tweak: Remove Legacy and PHP 4 complaint code<\/p><\/li>\n<li>Tweak: Add support for specifying width in gist shortcode<\/li>\n<\/ul>\n\n<h4>0.3 (2012-05-31) (Dev time: 2 hours)<\/h4>\n\n<ul>\n<li>Added the ability to choose gist-it server<\/li>\n<li>Added information to the screen help tab<\/li>\n<li>Generated Pot file for translation<\/li>\n<\/ul>\n\n<h4>0.2 (2012-05-02)<\/h4>\n\n<ul>\n<li>Fixed issue in embedding Github files<\/li>\n<\/ul>\n\n<h4>0.1 (2011-08-23)<\/h4>\n\n<ul>\n<li>Initial Version<\/li>\n<\/ul>","raw_excerpt":"Embed files and gist from Github in your blog posts or pages.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/14583","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=14583"}],"author":[{"embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/sudar"}],"wp:attachment":[{"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=14583"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=14583"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=14583"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=14583"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=14583"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=14583"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}