Text editor

Hello,

I tried searching and was unsuccessful in finding anything related with my question - perhaps I’m looking in the wrong area to begin with or using the wrong keywords in the search bar.

Anyways, the question is as follows: does I need a special text editor to do my scripting? Or do I need to have Lua downloaded to use the .Lua files? Or can I use notebook to do my text and save my file with the extension .lua versus .txt?

Thank you,
R3dbrut3

To use corona you do not need to install Lua itself - everything needed is installed with corona sdk. Yes, any editor supporting .lua extensions will do. However, better to use some advanced editors or some paid IDEs.

Hello piotrz55,

Thank you! I scanned the article and briefly reviewed some of the websites - I’ll look at the sublime text ide and the zerobrane ide and see which I prefer using.

I really look forward to utilizing the software and working on our first project.

~r3dbrut3

:slight_smile: you must also install java jdk 7 if you want to build app on android.

Zerobrane is really good one tool with line by line debug (which is not seen for free tool). However, I find it look rather raw. Last month I found sublime text editor 2 and I liked it very much. Text coloring, auto complete, snippets. Search on youtube something like: installing sublime text for corona sdk

Again, thank you Piotrz55, I will look into Java JDK 7 to install.

One follow up question - that perhaps I am not reading it properly - but I need to open the main.lua file to be able to work on it, right? If so what do i need to open the file? 

I booted up zerobrane and the Corona SDK, but when i create a new project in Corona, it will create a file within the corona folder (i’ve tried searching the file from Zerobrane in the project directory but do not see it). And when i click on the main.lua i get a message from windows saying that I do not have the right program to open the file?

~RB

In project folder you must have main.lua file. It is starting file for Corona. You can open it with what you want to edit it. I would recommend you to start with just notepad++. When you run project in simulator, Corona will take this file and run it. Lua is scripting language so there is no compilation step. You just run it. Of course there will be errors when trying to run files with syntax errors :slight_smile:

To use corona you do not need to install Lua itself - everything needed is installed with corona sdk. Yes, any editor supporting .lua extensions will do. However, better to use some advanced editors or some paid IDEs.

Hello piotrz55,

Thank you! I scanned the article and briefly reviewed some of the websites - I’ll look at the sublime text ide and the zerobrane ide and see which I prefer using.

I really look forward to utilizing the software and working on our first project.

~r3dbrut3

:slight_smile: you must also install java jdk 7 if you want to build app on android.

Zerobrane is really good one tool with line by line debug (which is not seen for free tool). However, I find it look rather raw. Last month I found sublime text editor 2 and I liked it very much. Text coloring, auto complete, snippets. Search on youtube something like: installing sublime text for corona sdk

Again, thank you Piotrz55, I will look into Java JDK 7 to install.

One follow up question - that perhaps I am not reading it properly - but I need to open the main.lua file to be able to work on it, right? If so what do i need to open the file? 

I booted up zerobrane and the Corona SDK, but when i create a new project in Corona, it will create a file within the corona folder (i’ve tried searching the file from Zerobrane in the project directory but do not see it). And when i click on the main.lua i get a message from windows saying that I do not have the right program to open the file?

~RB

In project folder you must have main.lua file. It is starting file for Corona. You can open it with what you want to edit it. I would recommend you to start with just notepad++. When you run project in simulator, Corona will take this file and run it. Lua is scripting language so there is no compilation step. You just run it. Of course there will be errors when trying to run files with syntax errors :slight_smile: