Support “ and ‘ as quotes

Currently as a roblox developer it is too hard to write a large portion of code on mobile due to the fact the quotes are supported as invalid Unicode characters

As you can see: " and “ are different.

Now in most cases this is not a problem, it is fair to say that most developers are not writing complex algorithms on a phone screen, however as I learnt today when trying to do a basic task like increasing a player’s value this was not so easy.

Just to clarify to users unfamiliar with how lua works, if the player’s name begins with a number, contains a . Or an _ then you have to use square brackets to reference it.

In the end, I had to write out the code in discord, ask him to change the quotes to that on his pc, copy the new message and then paste that into the console, I think it’s fair to say that is awful UX.

Adding this support would greatly improve my mobile developer experience and could perhaps open up more doors to a mobile version studio sometime in the future.

6 Likes

Personally I don’t think implementing this feature would be worth the effort. It would require changing the parser part of the compiler, as well as studio’s syntax checker/highlighter to match it.
Then there are issues such as how to interpret something like this:

print(“hi")

Accept it as valid? Only let “ pair with another “?
Throw a syntax error? and if so, wouldn’t it require a new custom message?

Especially since most of the time you can simply download a keyboard which supports the regular quotes, and in fact you should do that if you really script on phone regularly.

11 Likes

This seems like something you should fix in the keyboard settings of your device instead. This doesn’t seem to happen on both iOS/Android devices that I own.

7 Likes

If you use an iOS device, then go to Settings > General > Keyboard, then there should be a “Smart Punctuation” setting. If you turn it off you will get the quotes you would get by typing on a computer keyboard.

5 Likes