1lann / Mimic

A fully featured emulator for the Minecraft mod ComputerCraft that runs straight in your browser.
gravlann.github.io
MIT License
45 stars 20 forks source link

Mac OSX TextEdit character incompatibility. #55

Open dirthsj opened 9 years ago

dirthsj commented 9 years ago

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 
oeed commented 9 years ago

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.

dmarcuse commented 9 years ago

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.

dirthsj commented 9 years ago

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.