DGM Posted July 21, 2017 Share Posted July 21, 2017 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. Link to comment Share on other sites More sharing options...
addams013 Posted July 21, 2017 Share Posted July 21, 2017 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++. Link to comment Share on other sites More sharing options...
DGM Posted July 21, 2017 Author Share Posted July 21, 2017 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? Link to comment Share on other sites More sharing options...
Strelock Posted July 21, 2017 Share Posted July 21, 2017 Sublime's "Go to definition" feature works for Lua but is limited due to nature of a language. Link to comment Share on other sites More sharing options...
Cyberboy2000 Posted July 21, 2017 Share Posted July 21, 2017 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. Link to comment Share on other sites More sharing options...
DGM Posted July 21, 2017 Author Share Posted July 21, 2017 Darn. I'll manage, then. And I'll look into the grep tools. Thanks, guys. Link to comment Share on other sites More sharing options...
Recommended Posts
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.