Syntax Highlighting TextBox

In my free time, I decided to make a pseudo TextBox which can highlight Lua syntax.

This also uses a ScrollingFrame, which is pretty cool.
What are your comments on it?

Just a few things to keep an eye out for:
Comments don’t work yet.
Nor do long strings.
The keyboard layout is EN-GB - I’m working on a way to autodetect keyboards or have the user change it.

I just went on it, nothing really special to see from what I saw, a white box that you can click to make it slide up or slide down, I couldn’t type or anything.

I’m not saying that its nothing cool or anything I’m just letting you know that thats what happened when I went in maybe its a glitch or something.

[quote] I just went on it, nothing really special to see from what I saw, a white box that you can click to make it slide up or slide down, I couldn’t type or anything.

I’m not saying that its nothing cool or anything I’m just letting you know that thats what happened when I went in maybe its a glitch or something. [/quote]

That’s odd. I’ll have a look now.

EDIT: I just had a look, and everything seemed to work for me.

Maybe its something with macs? because I tried going on and off multiple times and when i click on the white box and try to type nothing happens.

Could be. But then again, I use UserInputService so it should be fine…

Bug report, maybe?

Possibly. I click everywhere and try to type yet nothing happens :confused: man I was lookin forward to seeing something like this Syntax Highlighter.

For some reason whenever I type a " it changes it to an @ sign. Is it supposed to do this?

That’s because you don’t have an EN-GB model keyboard. Basically, when making this I found out that keycodes which should be passed when one of the SHIFT keys are down don’t get passed, so I had to make my own function for shifting cases. Funny thing is, when making it I went off of the EN-GB layout so that’s how it happens. If you find that things like this happen, simply type the key which appears instead.