====== gh Plugin ====== ---- plugin ---- description: Embed files from a GitHub repository author : Andreas Gohr email : andi@splitbrain.org type : syntax lastupdate : 2022-11-27 compatible : Ponder Stibbons, Greebo, Jack Jackrum depends : conflicts : similar : repo, pycode tags : code, github, repository downloadurl: https://github.com/splitbrain/dokuwiki-plugin-gh/zipball/master bugtracker : https://github.com/splitbrain/dokuwiki-plugin-gh/issues sourcerepo : https://github.com/splitbrain/dokuwiki-plugin-gh/ donationurl: http://donate.dokuwiki.org/gh screenshot_img : ---- ===== Installation ===== Search and install the plugin using the [[plugin:extension|Extension Manager]]. Refer to [[:Plugins]] on how to install plugins manually. ===== Examples/Usage ===== {{gh>https://github.com/splitbrain/dokuwiki-plugin-gh/blob/master/syntax.php 5-10}} Above syntax embeds lines 5 to 10 of the ''syntax.php'' file from this plugin's repository on GitHub. You can leave out the line numbers to embed the whole file. Syntax highlighting is done according to the file's extension.