-->
Page 1 of 2

Line Numbers in Edit

PostPosted: Fri Jul 08, 2016 7:33 am
by jlbachiochi
When trying to locate an error that includes a line number, it would be nice to see line numbers or at least the present line number of the cursor somewhere in the edit page.

Re: Line Numbers in Edit

PostPosted: Fri Jul 08, 2016 7:07 pm
by Mmiscool
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/




2016-07-08 20_02_45-172.16.0.121_edit.png

Re: Line Numbers in Edit

PostPosted: Sat Jul 09, 2016 6:29 pm
by russm
I like it, works well! Thanks, I was also getting tired of counting lines to find my errors! :)

Re: Line Numbers in Edit

PostPosted: Fri Mar 02, 2018 5:17 pm
by jocalazima
hy
sorry for my english ...I'm a french.
I try to use the two files but they don't work ... ESP stops with blue led permanently lighting.
I use basic 3.69 ...
Can you help me ?
best regards
Cesar