I'm working on a new text editor (from scratch) that will do syntax highlighting on Lua code. I have a proper lexer all ready to go and I'm ready to start on the actual application, but I don't want to skimp on one of the best features: syntax highlighting!
I'm looking for a quick and efficient way of drawing syntax highlighting, aka multicolored text. I'm not sure if there's anything more efficient than gpu.setForeground then gpu.set repeatedly, but if there is, I'd like to know! And if there isn't, I'd also like to know.
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
I'm working on a new text editor (from scratch) that will do syntax highlighting on Lua code. I have a proper lexer all ready to go and I'm ready to start on the actual application, but I don't want to skimp on one of the best features: syntax highlighting!
I'm looking for a quick and efficient way of drawing syntax highlighting, aka multicolored text. I'm not sure if there's anything more efficient than gpu.setForeground then gpu.set repeatedly, but if there is, I'd like to know! And if there isn't, I'd also like to know.
Link to post
Share on other sites