Page 1 of 2

love editor

Posted: Sat Jul 24, 2021 10:15 pm
by monolifed
A barebones editor:
(left)ctrl+s saves
(left)ctrl+r saves and run the file (press escape to go back)
The file is also saved on quit
A console is required to see the errors
Mouse not supported, common keyboard operations supported
Optional code highlighting (lua only)
No bound checks

https://github.com/monolifed/loveditor

Its intended use is to edit small code portions within love
For example, I plan to add it to love example navigator:
https://love2d.org/forums/viewtopic.php?f=5&t=91657

Re: love editor

Posted: Sat Jul 24, 2021 11:10 pm
by GVovkiv
Yeah, nice, but what is purpose of that editor?
(like, Zerobrane exist or any other lua-compotable editor)

Re: love editor

Posted: Sun Jul 25, 2021 8:09 am
by Jeeper
GVovkiv wrote: Sat Jul 24, 2021 11:10 pm Yeah, nice, but what is purpose of that editor?
(like, Zerobrane exist or any other lua-compotable editor)
Would you ask the same to anyone posting a game here?

The purpose can be anything from fun to educational.

Re: love editor

Posted: Sun Jul 25, 2021 8:41 am
by togFox
I've come from notepad to zerobrane and seriously considering going back to notepad.

I think there is room for more editors that are better than notepad but not zerobrane.

Re: love editor

Posted: Sun Jul 25, 2021 10:13 am
by GVovkiv
Jeeper wrote: Sun Jul 25, 2021 8:09 am
GVovkiv wrote: Sat Jul 24, 2021 11:10 pm Yeah, nice, but what is purpose of that editor?
(like, Zerobrane exist or any other lua-compotable editor)
Would you ask the same to anyone posting a game here?

The purpose can be anything from fun to educational.
Bro, ok
But i asked OP, not you

Re: love editor

Posted: Sun Jul 25, 2021 4:02 pm
by darkfrei
How about Android version?

Re: love editor

Posted: Sun Jul 25, 2021 11:02 pm
by monolifed
I added multiline selection. It seems to works but I won't be surprised if it crashes.

I am not making a full text editor.
There will be no support for font styles, color schemes, menus, etc.
This is a simple edit control for love.

Re: love editor

Posted: Mon Jul 26, 2021 7:53 am
by GVovkiv
monolifed wrote: Sun Jul 25, 2021 11:02 pm I added multiline selection. It seems to works but I won't be surprised if it crashes.
https://github.com/monolifed/loveditor

I am not making a full text editor.
There will be no support for font styles, color schemes, menus, etc.
This is a simple edit control for love.
Okay then

Re: love editor

Posted: Tue Jul 27, 2021 7:16 am
by monolifed
darkfrei wrote: Sun Jul 25, 2021 4:02 pm How about Android version?
I didn't try it on an android device but I checked the documentation.
love.keyboard.setTextInput must be used to enable textinput
Other than that I don't know what might not be working on Android

If you want to run single file love programs.
Writing the code in a real editor, copying and running it on-paste could be more convenient.

Re: love editor

Posted: Fri Jul 30, 2021 9:26 am
by monolifed
Updated movement logic

Added highlight support via lexer.lua