3.0 Branch snazzy code highlighting editor with line numbers
Posted: Fri Jul 08, 2016 7:15 pm
I just posted up a new build that includes a snazzy code highlighting editor capability.
To use it you must upload 2 files to your module using the file manager page.
The 2 files are located here.
https://github.com/esp8266/Basic/tree/NewWebSockets/CSS
Once these 2 files are uploaded (don't decompress them. upload them as .gz files) the editor page will show line numbers and will start highlighting key words and such.
I used code mirror's vbscript highlighting example and have not added all the commands and functions for esp basic yet but it will do a good job with logic structures like if then statements, strings, values and math
https://codemirror.net/
To use it you must upload 2 files to your module using the file manager page.
The 2 files are located here.
https://github.com/esp8266/Basic/tree/NewWebSockets/CSS
Once these 2 files are uploaded (don't decompress them. upload them as .gz files) the editor page will show line numbers and will start highlighting key words and such.
I used code mirror's vbscript highlighting example and have not added all the commands and functions for esp basic yet but it will do a good job with logic structures like if then statements, strings, values and math
https://codemirror.net/