Archived

This topic is now archived and is closed to further replies.

Please be aware that the content of this thread may be outdated and no longer applicable.

DGM

Looking for text editor recommendation for lua

Recommended Posts

DGM    14

So I've been using Sublime Text 3 (Windows 10) for working with javascript files and it had a very useful feature: function calls were highlighted and mousing over them would tell me where the function was defined (even if it was in a different file).  That was very useful when tracing my way through unfamiliar code.

 

But now I'm looking at Invisible Inc's files and that feature is missing.  Does anyone know a way to get Sublime to do this for Lua files?  Or is there another editor that you'd recommend?  I tend to have a very hard time tracking things down in Invisible's code and the more help like that I can get, the better.

Share this post


Link to post
Share on other sites
addams013    22

LuaEdit is open-source and rather good in spite of the fact that it hasn't seen updates in some time -- and is a complete IDE, not just an editor.

If that's overkill, and all you really want is the editor, then there's always good old Notepad++.

Share this post


Link to post
Share on other sites
DGM    14

I just tried both, and neither tells me where the function being called is defined (at least not on mouseover).  Is there a way to make either of them do that?

Share this post


Link to post
Share on other sites
Cyberboy2000    543

It is not possible to do that as far as I know. Lua is a weakly typed language, in fact it is unusually so when it comes to functions. In javascript a function has one place where it's defined and then it remains there all the time. But functions in lua are treated like variables. They can be copied, moved to different places, and they can be replaced. That's a good thing for modders, because if it wasn't possible to do that we wouldn't be able to change existing code and so what we could do would be limited. What you should really get is a good grep tool like PowerGREP or grepWin.

Share this post


Link to post
Share on other sites
DGM    14

Darn.  I'll manage, then.  And I'll look into the grep tools.

 

Thanks, guys.

Share this post


Link to post
Share on other sites