Code editor made in Love2D?
Posted: Sat Jun 08, 2024 9:14 am
Hello all!
I've been playing around with the idea to create a very minimalistic, very simple code editor for the system I've been making in Love2D. Of course nothing is wrong with using VS Code, this is what I prefer, but I feel like if I would have an integrated code editor, it would offer a nice and easy way to create quick prototypes and jump in without any setup needed.
Would anyone have any recommendations where to start making a code editor what libraries are out there that could help me get started?
This is the primary things I need:
1. UI in general the text editing field, buttons, scroll bar..etc
2. File management, the ability to manage multiple files and read and write files inside selected directory.
3. Window management, I may would like to be able to have multiple windows open, one for the code editor and one for a preview maybe.
4. Performance in general, I did have a look at some code and text editors made in Love2D and was shared many years ago I also managed to make one using ChatGPT but most of them are really slow. Not sure if there is anything that could be done about that to make sure after X lines of code, the app does not slow down. In most cases the app slow down to the point I can enter only 1 letter every 2 seconds.
What I don't really need is autocomplete, syntax highlight and error checking, tips..etc I obviously don't want to compete with VS Code, I am only trying to create a fun and integrated experience for rapid prototyping.
Thank you.
I've been playing around with the idea to create a very minimalistic, very simple code editor for the system I've been making in Love2D. Of course nothing is wrong with using VS Code, this is what I prefer, but I feel like if I would have an integrated code editor, it would offer a nice and easy way to create quick prototypes and jump in without any setup needed.
Would anyone have any recommendations where to start making a code editor what libraries are out there that could help me get started?
This is the primary things I need:
1. UI in general the text editing field, buttons, scroll bar..etc
2. File management, the ability to manage multiple files and read and write files inside selected directory.
3. Window management, I may would like to be able to have multiple windows open, one for the code editor and one for a preview maybe.
4. Performance in general, I did have a look at some code and text editors made in Love2D and was shared many years ago I also managed to make one using ChatGPT but most of them are really slow. Not sure if there is anything that could be done about that to make sure after X lines of code, the app does not slow down. In most cases the app slow down to the point I can enter only 1 letter every 2 seconds.
What I don't really need is autocomplete, syntax highlight and error checking, tips..etc I obviously don't want to compete with VS Code, I am only trying to create a fun and integrated experience for rapid prototyping.
Thank you.