Page 1 of 1

Using Lua in CodeLite?

Posted: Fri May 27, 2011 7:21 pm
by Greendolph
The IDEs description said it had 'function highlighting' for Lua. Can CodeLite actually compile and run Lua scripts? How do I do that?

Re: Using Lua in CodeLite?

Posted: Sat May 28, 2011 7:49 am
by eranif
Greendolph wrote:Can CodeLite actually compile and run Lua scripts? How do I do that?
You will have to be more specific than that, since most of the users on this forum (me included) are not familiar enough with lua for answering this question.

In general, codelite is for c/c++, it can syntax highlight lua but this is where it ends - there is no lua code-completion, compiler nor debugger (and it will probably gonna remain this way)

Eran

Re: Using Lua in CodeLite?

Posted: Fri Jun 24, 2011 2:41 pm
by Lerg
Hi. I am aslo using Lua, it's a script language.
Syntax highlight works good, but I want to add code completion for Lua in CodeLite, how do I do it?
Here is an example of lua code:

Code: Select all

local function main()
    local str = 'Hello Word!'
    for i = 1, 5 do
        print(tostring(i) .. str)
    end
end

t = {'this is an', 'array'}
main()
print(t[1])
Thanks.

Re: Using Lua in CodeLite?

Posted: Fri Jun 24, 2011 3:43 pm
by eranif
Lerg wrote:but I want to add code completion for Lua in CodeLite, how do I do it?
You can't. Unless you are willing to start developing codelite and add the Lua code completion support.
The best way is probably by creating new plugin for Lua.

if you are interested in developing such plugin, you should join the IRC channel where you can get more help online (#codelite / irc.freenode.net)

Eran