Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/tommcfarlin/wp-dracula-highlight-js/archive/refs/heads/main.zipNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
Dracula Highlight
A WordPress plugin for adding the Dracula color scheme and Highlight.js to the Block Editor.
📷 Screenshot
💾 Download
- Navigate to the Releases page.
- Click on the link that reads Source code (zip) in the top most release.
🖥️ Installation
Note: The name of the archive may be different but should include the title of the plugin.
1. Using the WordPress Dashboard
- Navigate to the Add New Plugin Dashboard
- Select
wp-dracula-highlight-js.zipfrom your computer - Upload the archive
- Activate the plugin on the WordPress Plugin Dashboard
2. Using FTP
- Extract
wp-dracula-highlight-js.zipto your computer - Upload the
wp-dracula-highlight-jsdirectory to yourwp-content/pluginsdirectory - Activate the plugin on the WordPress Plugin Dashboard
3. Git
- Navigate to the
pluginsdirectory of your WordPress installation - From the terminal, run
https://github.com/tommcfarlin/wp-dracula-highlight-js.git
🔌 Using the Plugin
- In the Block Editor, make sure that the code you want styled is placed in a Preformatted block. It should look like this in the editor.
- Preview or view the post in the frontend view of the site and it should appear like this.
📝 Notes
This plugin does not check for the presence of Highlight.js or the Dracula stylesheet before adding this to WordPress. It's intended to be an all-in-one solution for the Block Editor.
📋 Future Features
- [ ] Check to see if highlight.js is already loaded
- [ ] Add editor stylesheet
- [ ] Improve performance by using PHP to add classes to the document rather than JavaScript
- [ ] Remove the need for
!importantin stylesheets.
Releases
1 release.
Tag
Published
1.0.0
latest
Aug 31, 2022 4 years ago
These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.