It looks like you're new here. If you want to get involved, click one of these buttons!
(this post is too messy)
Hi everyone!
I just wanted to share my LIVE code editor with all of you.
Features:
- Custom cursor shape and color
- Cursor navigation using hardware keyboard
- Cursor navigation using finger
- Multiple lines
To do:
- Fix misaligned cursor / cursor spacing in certain font sizes
- Text scrolling action
- Syntax highlighting
- Custom text wrapper
- Save document changes
- Load document
- Create new document
- Multiple document in tabs
I hope this is useful!
(edit: screenshot added)
Comments
@marcelliino If you’re done adding the code above, then you’re missing code at the end in the section
function TextEditor:draw()
. I loaded the zip file and that works OK. Haven’t tried anything other than just running it.@dave1707 yes, I’ve edited it

It was because the monkey emoji
@marcelliino Emojis don’t show very well when displayed in the code in the forum. You’re missing a lot of code in the TextEditor:draw() function in the code you show above. Apparently when an emoji is encountered, none of the code after it is shown. An
if
statement is started, but not finished.@dave1707 yep, sorry for that. Thanks for the advice