Available plugins
-
Autolinker
Converts URLs and emails in code to clickable links. Parses Markdown links in comments.
-
Autoloader
Automatically loads the needed languages to highlight the code blocks.
-
Command Line
Display a command line with a prompt and, optionally, the output/response from the commands.
-
Copy to Clipboard
Add a button that copies the code block to the clipboard when clicked.
-
Custom Class
This plugin allows you to prefix Prism’s default classes (
.comment
can become.namespace--comment
) or replace them with your defined ones (like.editor__comment
). You can even add new classes. -
Data URI Highlight
Highlights data-URI contents.
-
Diff Highlight
Highlight the code inside diff blocks.
-
Download Button
A button in the toolbar of a code block adding a convenient way to download a code file.
-
File Highlight
Fetch external files and highlight them with Prism. Used on the Prism website itself.
-
Filter highlightAll
Filters the elements the
highlightAll
andhighlightAllUnder
methods actually highlight. -
Highlight Keywords
Adds special CSS classes for each keyword for fine-grained highlighting.
-
Inline Color
Adds a small inline preview for colors in style sheets.
-
JSONP Highlight
Fetch content with JSONP and highlight some interesting content (e.g. GitHub/Gists or Bitbucket API).
-
Keep Markup
Prevents custom markup from being dropped out during highlighting.
-
Line Highlight
Highlights specific lines and/or line ranges.
-
Line Numbers
Line number at the beginning of code lines.
-
Match braces
Highlights matching braces.
-
Normalize Whitespace
Supports multiple operations to normalize whitespace in code blocks.
-
Previewers
Previewers for angles, colors, gradients, easing and time.
-
Remove Initial Line Feed
Removes the initial line feed in code blocks.
-
Show Invisibles
Show hidden characters such as tabs and line breaks.
-
Show Language
Display the highlighted language in code blocks (inline code does not show the label).
-
Toolbar
Attach a toolbar for plugins to easily register buttons on the top of a code block.
-
Treeview
A language with special styles to highlight file system tree structures.
-
Unescaped Markup
Write markup without having to escape anything.
-
WebPlatform Docs
Makes tokens link to WebPlatform.org documentation. The links open in a new tab.
Contribute
Writing Prism plugins is easy! Read how at the “Extending Prism” section.