-->
Page 2 of 2

Re: 3.0 Branch snazzy code highlighting editor with line num

PostPosted: Wed Jul 13, 2016 6:36 pm
by raintime
Hello Mike,

I think this is a revolutionary language!

You mentioned, "As to the html and css on normal aplicate gui pages i belive the soulution is to use the returngui commad after complex html is sent using wprint."

I put the following two lines in my code:

wprint |<a href="http://my_link.com">my link text</a>|
returngui

But when I saved & ran this code, I saw my link text printed, but it did not show up as a link, just as normal text. How can I put a link in my code, or even put a button in to load another page? So far, nothing I try desperately lets me escape from the default page :oops:

Thanks!!!

Re: 3.0 Branch snazzy code highlighting editor with line num

PostPosted: Sun Jan 29, 2017 1:26 am
by flywire
Mmiscool wrote: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. ...

Excellent functionality if the memory is available. I put these 3 files (included the widgets.js.gz) in the /uploads directory but they only stop the IDE Editor from opening. Do they still work with ESP Basic 3.0.Alpha 66?

Can any other files be used in *.gz format?

Re: 3.0 Branch snazzy code highlighting editor with line num

PostPosted: Tue Feb 14, 2017 10:34 pm
by Mmiscool
Yes. Gzip compressed files can be used and acessed just like any other file being hosted.

I have not seen when the javascript and css caused any problems with editing. I personaly perfer it as weird characters show up as an obiouse dot that can be remove.