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

Code Highlight and Docs

Code highlight and documentation

by Ryan Bester · github.com/ryanbester/wp-highlight-plugin

0stars
0forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/ryanbester/wp-highlight-plugin/archive/refs/heads/master.zip

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.