Code Highlight and Docs
Code highlight and documentation
★ 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.zipWordPress plugin to highlight code blocks, and provide documentation on function hover.
Install
- Clone the repo
npm installnpm run build- 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.