Mimic
Mimic copied to clipboard
Mac OSX TextEdit character incompatibility.
Annoyingly enough, TextEdit uses “ instead of ", causing all sorts of errors if I try to test my scripts...
print( string.byte( [[“]] ) )
print( string.byte( [["]] ) )
It errors like so in most scripts (not the example since it's in a string, but still ):
string[ "name" ]:ln: unexpected symbol near
The only thing I can say really is to not use TextEdit, it's not designed to be a code editor. Use something like Sublime Text or even the built-in editor.
I second the motion for Sublime Text. Even better, see if you can find the CC syntax highlighting package that someone (GravityScore maybe?) wrote a while back.
Yeah, normally I do use sublime text + CC package, but occasionally I do code on my school issued macbook air, which of course doesn't allow me to install anything.