Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
Download Button ▲ Prism
[go: Go Back, main page]

Prism

Download

Prism is a lightweight, extensible syntax highlighter, built with modern web standards in mind. It’s used in millions of websites, including some of those you visit daily.

Theme:

Download Button

A button in the toolbar of a code block adding a convenient way to download a code file.

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: