How to use

Use the data-src and data-download-link attribute on a <pre> elements similar to Autoloader, like so:

<pre data-src="myfile.js" data-download-link></pre>

Optionally, the text of the button can also be customized by using a data-download-link-label attribute.

<pre data-src="myfile.js" data-download-link data-download-link-label="Download this file"></pre>

Examples

The plugin’s JS code:



	

This page: