love editor

Show off your games, demos and other (playable) creations.
monolifed
Party member
Posts: 188
Joined: Sat Feb 06, 2016 9:42 pm

love editor

Post 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
Last edited by monolifed on Fri Jul 30, 2021 9:33 am, edited 4 times in total.
User avatar
GVovkiv
Party member
Posts: 668
Joined: Fri Jan 15, 2021 7:29 am

Re: love editor

Post by GVovkiv »

Yeah, nice, but what is purpose of that editor?
(like, Zerobrane exist or any other lua-compotable editor)
User avatar
Jeeper
Party member
Posts: 611
Joined: Tue Mar 12, 2013 7:11 pm
Contact:

Re: love editor

Post 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.
User avatar
togFox
Party member
Posts: 764
Joined: Sat Jan 30, 2021 9:46 am
Location: Brisbane, Oztralia

Re: love editor

Post 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.
Current project:
https://togfox.itch.io/backyard-gridiron-manager
American football manager/sim game - build and manage a roster and win season after season
User avatar
GVovkiv
Party member
Posts: 668
Joined: Fri Jan 15, 2021 7:29 am

Re: love editor

Post 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
User avatar
darkfrei
Party member
Posts: 1168
Joined: Sat Feb 08, 2020 11:09 pm

Re: love editor

Post by darkfrei »

How about Android version?
:awesome: in Lua we Löve
:awesome: Platformer Guide
:awesome: freebies
monolifed
Party member
Posts: 188
Joined: Sat Feb 06, 2016 9:42 pm

Re: love editor

Post 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.
Last edited by monolifed on Tue Jul 27, 2021 7:16 am, edited 1 time in total.
User avatar
GVovkiv
Party member
Posts: 668
Joined: Fri Jan 15, 2021 7:29 am

Re: love editor

Post 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
monolifed
Party member
Posts: 188
Joined: Sat Feb 06, 2016 9:42 pm

Re: love editor

Post 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.
monolifed
Party member
Posts: 188
Joined: Sat Feb 06, 2016 9:42 pm

Re: love editor

Post by monolifed »

Updated movement logic

Added highlight support via lexer.lua
Post Reply

Who is online

Users browsing this forum: No registered users and 13 guests