Show line numbers before each line in the built-in editor !

Started by Bletchley Park

Bletchley Park Lv 1

I receive an error while debugging: "String (DEBUG=0) 565 …. "
So I need to scroll down and count the lines until I reach number 565 to see the code that has an error ?

LociOiling Lv 1

We've been told the built-in editor is going away when the new website finally happens. (Maybe somewhat soon?) The new site will include some sort of recipe editor.

Regardless of the old or new site, if you're routinely working with recipes of more than a few lines, an external editor is the way to go.

The Notepad++ editor is often mentioned. It's free, and includes features like line numbering and Lua syntax highlighting. It's a line-oriented editor, so it's suitable for programming.

I use the "vim" editor, which lets me keep my hands on the keyboard most of the time. It's not a bad option if you started out punching paper tape on a a Teletype machine.

With an external recipe editor, you can copy and paste into the Foldit editor. The more formal way is to use Load -> Import in the Foldit editor read an external file. Similarly, Save -> Export gets a recipe out of Foldit and into a file, or you can copy and paste into an external editor.

Bletchley Park Lv 1

Thank you for your input Loci.

"We've been told the built-in editor is going away when the new website finally happens. (Maybe somewhat soon?) The new site will include some sort of recipe editor."

We have not been asked whether this is what we, the users, want. I do not want an editor on a website.

bkoep Staff Lv 1

That's understandable! I also wish we could have a fully-featured text editor integrated into the Foldit app. Unfortunately, we've decided that we need to drop support for the Foldit recipe editor because it is not worth the cost of maintenance.

The Foldit recipe editor is entirely custom code, written over 10 years ago specifically for Foldit. This made a little more sense back in 2009, before we knew how important scripts would become for Foldit. But it is a bit buggy, lacks modern text editor features, and requires precious developer time to maintain as we continue to develop Foldit. Even simple upgrades, like adding line numbers, draw resources away from projects that improve Foldit's scientific capabilities.

Meanwhile, there are now web-based text editors that are freely available, widely supported, and professionally maintained. A tool like the Ace editor can be easily embedded into a webpage, and automatically offers features like search, syntax highlighting, and line numbers.