_ANDYP - ACF - Codemirror Class
Add CodeMirror textarea fields for Wordpress ACF
by Andy Pearson · github.com/ioroot/wp-plugin__acf--codemirror · website
★ 1stars
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/ioroot/wp-plugin__acf--codemirror/archive/refs/heads/master.zipFrom the readme
ACF Textarea Codemirror
Enables CodeMirror to work on textareas within ACF Option pages. This gives you code syntax highlighting with a mono-font.
1. Table of Contents
1. Table of Contents
2. About The Project
2.1. Built With
2.2. Installation
3. Usage
3.1. [[andyplabsstack]](#andyplabsstack)
3.2. [[andyplabsrest]](#andyplabsrest)
4. Customising
5. Troubleshooting
6. Contributing
7. License
8. Contact
2. About The Project
Thi plugin does 3 things:
1. Adds a codemirror instance to the textarea code boxes in ACF
2. Gives shadows to table rows
3. Puts MaterialIcons CSS in the head. (https://cdn.jsdelivr.net/npm/@mdi/font@5.8.55/css/materialdesignicons.min.css)
(back to top)
2.1. Built With
This project was built with the following frameworks, technologies and software.
ACF
CodeMirror
MterialIcons
PHP
Wordpress
Composer
(back to top)
2.2. Installation
These are the steps to get up and running with this plugin.
1. Clone the repo into your wordpress plugin folder
1. Activate the plugin.
(back to top)
3. Usage
This is an easy two-step process.
1. Create an ACF Options page and add a textarea you wish to use codemirror on.
1. Add the C