Newbie who interested to learn (Pls help me)

Good day to everyone. I am totally new here and just installed Corona SDK.

But I am stuck at the very beginning of the lesson --> printing “Hello World”.

Anything is wrong with my editor? i noticed that my editor is different from others where others showing different color when they typed 'local".

I had attached the situation that I encountered. I was trying to Google for the solution of this error mode but have no luck.

Appreciate that someone could help. Thanks in advance.

Hi @yglee717,

Welcome to Corona! It looks like your editor (TextEdit) may be using “smart quotes”, meaning angled stylized quotes instead of plain code-friendly quotes. Please follow these steps:

  1. When in TextEdit, go to “TextEdit > Preferences…”

  2. With the “New Document” tab selected, look in the lower right of the panel. Ensure that " Smart quotes" is NOT selected… in fact, turn off all of those "Smart… " boxes.

Best regards,

Brent

Dear Brent,
Thanks a lot for the immediate response. I had tried your way but the word “local” is still in black color. Please see attached screenshot. I had turned off all those “Smart…” boxes.
 
By the way, thanks for your help to send me the basic tutorial link. It works. I am trying to figure out the basics now. Do you provide courses? Just in case I am indulged into this and would like to study further :).
 
Thanks and best regards,
 
Lee

Hi Lee,

Is your current code producing errors? It basically looks OK to me, and the “smart quotes” are fixed.

As for tutorials, videos, etc., the best place to begin is at Corona University where you’ll find a ton of resources for learning:

http://www.coronalabs.com/resources/tutorials/getting-started-with-corona/

Take care,

Brent

Dear Brent,

No more errors, it works well now. Thanks for the help.

I am just curious about why others are writing in different colors which is easier for identification and code checking.

Thanks for the tutorial link, it is useful to me.

Regards,

Lee

Hi Lee,

While it’s possible to continue writing your code using TextEdit, I suggest that you explore better options like an IDE or simply a text editor application which supports Lua code coloring, indentation, etc. This will help you a lot in your future coding.

One option is Corona Editor…

http://coronalabs.com/products/editor/

And there are other suggestions in this guide…

https://docs.coronalabs.com/guide/start/installMac/index.html#editor

Brent

Dear Brent,

Thanks, you are really a wonderful and helpful coach. I had installed Corona Editor and practising some basics now. Heartfelt thanks for solving my problems in such a short time.

Regards,

Lee

Lee, Corona uses plain text to code in.  To Lua, there is no colors, it’s just simple text.  TextEdit, provided with Mac’s does not do whats known as “Syntax Highlighting”.   This is a function of the editor, not of your code and TextEdit does not provide that.  Now that you’re using Sublime Text, it’s smart enough to do the highlighting for you.

When people post code to the forums, if they use the right tricks, the forums will also do syntax highlighting.  You’re code isn’t broken because you don’t see colors, you just need a different/better editor.

Rob

Hi @yglee717,

Welcome to Corona! It looks like your editor (TextEdit) may be using “smart quotes”, meaning angled stylized quotes instead of plain code-friendly quotes. Please follow these steps:

  1. When in TextEdit, go to “TextEdit > Preferences…”

  2. With the “New Document” tab selected, look in the lower right of the panel. Ensure that " Smart quotes" is NOT selected… in fact, turn off all of those "Smart… " boxes.

Best regards,

Brent

Dear Brent,
Thanks a lot for the immediate response. I had tried your way but the word “local” is still in black color. Please see attached screenshot. I had turned off all those “Smart…” boxes.
 
By the way, thanks for your help to send me the basic tutorial link. It works. I am trying to figure out the basics now. Do you provide courses? Just in case I am indulged into this and would like to study further :).
 
Thanks and best regards,
 
Lee

Hi Lee,

Is your current code producing errors? It basically looks OK to me, and the “smart quotes” are fixed.

As for tutorials, videos, etc., the best place to begin is at Corona University where you’ll find a ton of resources for learning:

http://www.coronalabs.com/resources/tutorials/getting-started-with-corona/

Take care,

Brent

Dear Brent,

No more errors, it works well now. Thanks for the help.

I am just curious about why others are writing in different colors which is easier for identification and code checking.

Thanks for the tutorial link, it is useful to me.

Regards,

Lee

Hi Lee,

While it’s possible to continue writing your code using TextEdit, I suggest that you explore better options like an IDE or simply a text editor application which supports Lua code coloring, indentation, etc. This will help you a lot in your future coding.

One option is Corona Editor…

http://coronalabs.com/products/editor/

And there are other suggestions in this guide…

https://docs.coronalabs.com/guide/start/installMac/index.html#editor

Brent

Dear Brent,

Thanks, you are really a wonderful and helpful coach. I had installed Corona Editor and practising some basics now. Heartfelt thanks for solving my problems in such a short time.

Regards,

Lee

Lee, Corona uses plain text to code in.  To Lua, there is no colors, it’s just simple text.  TextEdit, provided with Mac’s does not do whats known as “Syntax Highlighting”.   This is a function of the editor, not of your code and TextEdit does not provide that.  Now that you’re using Sublime Text, it’s smart enough to do the highlighting for you.

When people post code to the forums, if they use the right tricks, the forums will also do syntax highlighting.  You’re code isn’t broken because you don’t see colors, you just need a different/better editor.

Rob