can't open main.lua file

Hi guys, so I just got into corona sdk with absolutely no programming experiences or whatsoever. I’ve decided to follow the quick startup guide on hello world as provided in this link:

http://developer.anscamobile.com/resources/corona-quick-start

I managed to follow the guide until the point where I have to type the following codes in textedit

myText = display.newText( “Hello, World!”, 20, 40, native.systemFont, 36 )
myText:setTextColor( 255,0,0 )

Upon saving it as main.lua, I created a new folder called Hello World as instructed and saved the main.lua file inside.

I then launched the Corona Simulator and clicked on “open a project in the Corona Simulator” , as I navigate the Hello World folder, I saw the main.lua file faded and unclick-able. When I clicked on the Hello World folder and clicked “open” , a message displaying “Please select a main.lua file or a directory that contains that file” appears.

What went wrong? Why can’t I open the file and see the simulator running?

Was something wrong with the codes I typed in TextEdit? I typed it manually, noticing the differences in font and spacings. Should I use TextWrangler instead? Thanks in advance for any feedbacks or solutions. [import]uid: 50659 topic_id: 8621 reply_id: 308621[/import]

I’m guessing that you didn’t navigate to the folder correctly, please post a screenshot of the file dialog so that we can confirm whether or not you did that correctly. [import]uid: 12108 topic_id: 8621 reply_id: 30925[/import]

Hey, thanks a lot! I got the problem solved by typing it in textwrangler. It’s all good and working now. Thanks! [import]uid: 50659 topic_id: 8621 reply_id: 31057[/import]

Was something wrong with the codes I typed in TextEdit?

oh wait I just noticed this part. Since you are so new to this stuff you almost certainly saved it as Rich Text. Annoyingly, TextEdit defaults to Rich Text, not standard text. All programming (this certainly includes Corona) uses standard text. You can change that in the preferences, but the default is annoying. Rich Text isn’t good for anything, it’s a failed document description format that shouldn’t be the default anymore.

This problem used to come up all the time when I taught beginning web designers. They’d write their HTML in TextEdit and then wonder why it didn’t work. [import]uid: 12108 topic_id: 8621 reply_id: 31103[/import]