Post subject: Notepad++ Lua plugin or best editor?
Joined: 6/18/2015
Posts: 54
One thing that can really change my experience coding is the editor. Do you guys have anything effective for writing lua plugins?
Invariel
He/Him
Editor, Site Developer, Player (169)
Joined: 8/11/2011
Posts: 539
Location: Toronto, Ontario
Notepad++ and Sublime Text 3 are both fantastic editors with LUA syntax highlighting pre-installed.
I am still the wizard that did it. "On my business card, I am a corporate president. In my mind, I am a game developer. But in my heart, I am a gamer." -- Satoru Iwata <scrimpy> at least I now know where every map, energy and save room in this game is
ALAKTORN
He/Him
Player (99)
Joined: 10/19/2009
Posts: 2527
Location: Italy
I’m not all that advanced in this field but I find Notepad++ to be really good.
Post subject: Re: Notepad++ Lua plugin or best editor?
adelikat
He/Him
Emulator Coder, Site Developer, Site Owner, Expert player (3584)
Joined: 11/3/2004
Posts: 4738
Location: Tennessee
Dwood15 wrote:
writing lua plugins?
It is lua scripts not plugins, despite what a certain well known person keeps saying
It's hard to look this good. My TAS projects
Editor, Player (68)
Joined: 1/18/2008
Posts: 663
Kate. Sublime. Decoda.
true on twitch - lsnes windows builds 20230425 - the date this site is buried
Amaraticando
It/Its
Editor, Player (157)
Joined: 1/10/2012
Posts: 673
Location: Brazil
Using a Lua IDE is pretty much useless for debugging, since you can't use the emulator functions in the process... Or can we? I use Notepad++ plus the following Lua function parser:
Language: xml

<association langID="23" id="lua_function"/>
[...]
Language: xml

<parser id="lua_function" displayName="Lua" commentExpr="((--\[=*\[.*?)\]=*\]|(--.*?$))"> <function mainExpr="function\(\s*(([_A-Za-z][\w_]*|\.\.\.)\s*,?\s*)*\)|function\s+([_A-Za-z][\w_]*\.\s*)*([_A-Za-z][\w_]*[\.:]\s*)?[_A-Za-z][\w_]*\s*\(" displayMode="$className->$functionName"> <functionName> <nameExpr expr="function\(\s*(([_A-Za-z][\w_]*|\.\.\.)\s*,?\s*)*\)|\s([_A-Za-z][\w_]*\.\s*)*([_A-Za-z][\w_]*[\.:]\s*)?[_A-Za-z][\w_]*\s*\("/> <nameExpr expr="function\(\s*(([_A-Za-z][\w_]*|\.\.\.)\s*,?\s*)*\)|[_A-Za-z][\w_]*\s*\("/> <nameExpr expr="function\(\s*(([_A-Za-z][\w_]*|\.\.\.)\s*,?\s*)*\)|[_A-Za-z][\w_]*"/> </functionName> <className> <nameExpr expr="function\(\s*(([_A-Za-z][\w_]*|\.\.\.)\s*,?\s*)*\)|\s([_A-Za-z][\w_]*\.\s*)*([_A-Za-z][\w_]*[\.:]\s*)?[_A-Za-z][\w_]*\s*\("/> <nameExpr expr="function\(\s*(([_A-Za-z][\w_]*|\.\.\.)\s*,?\s*)*\)|\s([_A-Za-z][\w_]*\.\s*)*([_A-Za-z][\w_]*[\.:]\s*)?"/> <nameExpr expr="function\(\s*(([_A-Za-z][\w_]*|\.\.\.)\s*,?\s*)*\)|([_A-Za-z][\w_]*\.\s*)*([_A-Za-z][\w_]*[\.:]\s*)?"/> <nameExpr expr="function\(\s*(([_A-Za-z][\w_]*|\.\.\.)\s*,?\s*)*\)|([_A-Za-z][\w_]*\.\s*)*[_A-Za-z][\w_]*\s*[\.:]"/> <nameExpr expr="function|([_A-Za-z][\w_]*\.\s*)*[_A-Za-z][\w_]*\s*"/> </className> </function> </parser>
If someone happens to know a better parser, please share :p
Joined: 6/18/2015
Posts: 54
Thanks for the input. I've been using Notepad++, but without being able to map out variables and such easily i'm kind of stuck doing it the hard way. Oh well. This is partly why I hate lua, without at least a 'var' before a variable being required (yes, i know about local) it can be hard to trace the flow of a program by eyeballing it.