WP Manifestindependent plugin directory
manifest / editor / wp-highlight-plugin

Code Highlight and Docs

Code highlight and documentation

★ 0stars

Install

Download source zip No release zip yet

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/ryanbester/wp-highlight-plugin/archive/refs/heads/master.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

WordPress plugin to highlight code blocks, and provide documentation on function hover.

Install

  1. Clone the repo
  2. npm install
  3. npm run build
  4. Copy the directory to your WordPress install directory.

Usage

Create a Code Block item inside the block editor.

Function Documentation

Documentation dictionaries can be created within the WordPress admin panel. They simply map a function name to markdown documentation.

Number Circles

Number circles can be inserted in code with the special ({ number )} syntax. They can be referenced in the block editor by selected Number Circle within the floating toolbar.