Show code from Bitbucket Server and Github in Confluence
Macro to include code from your Git repository
Include whole files or just snippets from your Git repository into any Confluence page. The macro will always show the current version of your code.
Simple usage by copying and pasting a URL
Browse to the file in the web frontend of your Git server (Bitbucket Server or Github), mark the lines you want to show in Confluence and copy & paste the URL into the macro.