• Unlimited downloads from €14.50/month
  • 19+ million premium assets and templates
  • Cancellable at any time
  • Templates, Mockups, Media, Fonts, +5

Codeblocks Extended with PrismJS

by duplaja (Dan D.)

0 Ratings

Active Installations

10+

Last Update

5 years

Quality

D

Plugin Description

Description
Codeblocks Extended with PrismJS was born of a personal need for a lightweight code highlighter, with special functionality.
Many of the other PrismJS based plugins in the repository were either outdated, or were lacking features that I was looking for.
Features:
Integrates the latest PrismJS build, with the most common langauges used.
Integrates the PrismJS line-numbers plugin, to automatically number lines of code.
Integrates the PrismJS line-highlight plugin to allow you to highlight specific lines of code.
Integrates ClipboardJS + custom jQuery to add a “Copy to Clipboard” button to each code block.
Custom Text Editor button to wrap selected text with the most commmon

and

classes, and replacing special characters with their HTML safe equivalents.
Custom Visual Editor / TinyMCE dropdown button, with the most common languages to wrap selected text.
Since this works via wrapping

and

tags with classes, you can use all custom class settings that PrismJS offers.
No shortcodes to mess with, so you don’t have to worry about losing whitespace between editor modes.
No settings page needed: Just activate it and go!
For a full list of languages supported and more information on this plugin’s use, please check out the FAQ.
Note: This does NOT auto-detect the language. Most plugins that do so brute force the languages or require file extensions, resulting in a much heavier plugin. The decision was made to keep this as light-weight as possible.
Note 2: This is designed to work with the Classic Editor. It does not currently work in Gutenberg blocks.
Thanks to Mike @ WP Bullet for the banner and icon.

Similar Plugins

  • Report Bug
The content on this website originates from various sources. All rights to the original content remain with the respective author. If you believe that your copyrights have been infringed by the use of content on this website, please contact us at info@plugin-guru.com. We will remove the content in question immediately.

This is the heading

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.

Collections

Create your first Collection

To create a collection, simply click on the symbol on the desired plugin.

You can see this symbol when you move the mouse over the plugin. 

Current Level

Plugin Magican

You have reached 0 views on your collections and are currently Plugin Magican. You magically help people find the right plugins and are a great asset to the community

0 of 500 views reached