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/teeehn/teeehn-syntax-highlighter/archive/refs/heads/master.zipNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
Syntax highlighter for WordPress
This is a very simple implementation of highlight.js
Currently provides syntax highlighting using the obsidian theme.
Usage
- Click "Clone or Download" button above. Select option to "Download zip".
- Install the plugin into your WordPress plugin directory via the admin of your WordPress site or by uploading the zip file to your plugin directory and unzipping.
- Activate plugin.
- Wrap the code you would like to highlight in
<pre><code></code></pre> - Enjoy!