This class is a helper class for syntax highlighting in a textarea using Codemirror.
Multiple instances with different langues and themes are allowed.
Links:
- Codemirror Website: https://codemirror.net/
- CDN to include the library:
It is a work in progress. Only a basic subset of Codemirror features is supported. In the first step I needed viewer and editor with syntax highlighting.
👤 Author: Axel Hahn
📄 Source: https://github.com/axelhahn/php-codemirror
📜 License: GNU GPL 3.0
📗 Docs: see https://www.axel-hahn.de/docs/php-codemirror/
If you have git and php installed locally you can run the example.
git clone https://github.com/axelhahn/php-codemirror.git
cd php-codemirror/examples
# Run the server
php -S localhost:9000In the browser, open the url http://localhost:9000/
