-->
Page 1 of 1

No line numbers, keywords are not highlighted

PostPosted: Mon Mar 20, 2017 12:24 pm
by Bala Chandar
I have been using PIC microcontrollers with PicBasic Pro for the past 15 years and now I am excited to try out ESP8266 with ESP Basic.
I have uploaded the two files (codemirror.css.gz and codemirror.js.gz) from Github site and the files appear in uploads folder when I click on FileManager. But line numbers don't appear and keywords are not highlighted. I have tried with two different modules, each with 4MB flash memory. Reflashed both (ESP Basic 3.0 Alpha 68), but the auto line numbers and highlighting are not enabled. Can someone tell me what the issue could be?

Re: No line numbers, keywords are not highlighted

PostPosted: Mon Mar 20, 2017 7:28 pm
by jimg
I just downloaded them from https://github.com/esp8266/Basic/tree/NewWebSockets/CSS

Uploaded to esp and they show as /uploads/codemirror.css.gz and /uploads/codemirror.js.gz in filemanager.

Worked for me. Do you have the latest alpha loaded?

Re: No line numbers, keywords are not highlighted

PostPosted: Mon Mar 20, 2017 9:50 pm
by Mmiscool
What size flash is your module?

What browser are you using?

Re: No line numbers, keywords are not highlighted

PostPosted: Mon Mar 20, 2017 11:16 pm
by Bala Chandar
Mmiscool wrote:What size flash is your module?

What browser are you using?


Mike, the size of the flash memory in my module is 4MB and the browser I use is Chrome.
BTW, I have found the cause of the issue. When you right click on the file names in GitHub site, one of the options you get is "Save link as..." and that's how I saved the files and uploaded to ESP. Later I wondered whether that was the right way of downloading the files. When I left clicked on the file name, I got the "Download" option and the downloaded file had a different file size. Immediately I realized that I had found the cause of the problem. Now, automatic line numbers, keyword highlighting and automatic indents are all working fine. Thank you for the help.