Notepad++ Autocomplete XML

Notepad++ Autocomplete XML

Discuss Lua based Spring scripts (LuaUI widgets, mission scripts, gaia scripts, mod-rules scripts, scripted keybindings, etc...)

Moderator: Moderators

Post Reply
User avatar
PicassoCT
Journeywar Developer & Mapper
Posts: 10452
Joined: 24 Jan 2006, 21:12

Notepad++ Autocomplete XML

Post by PicassoCT »

https://github.com/PicassoCT/SpringLuaM ... spring.xml

Fell sort of from the waggon when trying to autogenerate a mockup api
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Notepad++ Autocomplete XML

Post by Forboding Angel »

Wow this is super cool! Is this all callins synced/unsynced?
User avatar
PicassoCT
Journeywar Developer & Mapper
Posts: 10452
Joined: 24 Jan 2006, 21:12

Re: Notepad++ Autocomplete XML

Post by PicassoCT »

yes - the returned data and type is missing though

also not sure if the api converter missed out on some

feel free to add
MaDDoX
Posts: 78
Joined: 08 Jan 2006, 17:45

Re: Notepad++ Autocomplete XML

Post by MaDDoX »

How to setup Spring autocomplete in IntelliJ IDEA (community or Pro):

Download the zip and extract the SDK folder from:
https://github.com/PicassoCT/SpringLuaMoccacino

Within IntelliJ, go to settings, install or make sure the EmmyLua plugin active

Project > External Libraries > <LuaJ> >
RMB > Open Library Settings
Click [+] (bottom left) -> Add Mocaccino SDK folder
Apply -> Ok

Profit!
User avatar
jamerlan
Balanced Annihilation Developer
Posts: 683
Joined: 20 Oct 2009, 13:04

Re: Notepad++ Autocomplete XML

Post by jamerlan »

Is EmmyLua better than "Lua" plugin? (for Intellij Idea)
https://plugins.jetbrains.com/plugin/5055-lua
MaDDoX
Posts: 78
Joined: 08 Jan 2006, 17:45

Re: Notepad++ Autocomplete XML

Post by MaDDoX »

@jamerlan no luck making mocaccino running with the older/more mature 'Lua' plugin. Not sure if I missed something. Anyways, it's nice to install the lua plugin first so IntelliJ also finds/autocompletes the lua standard libraries. Then you disable it and enables EmmyLua.

Again, you can probably do that by installing lua separately and pointing to its libs, I just found this way easier / more straightforward.
MaDDoX
Posts: 78
Joined: 08 Jan 2006, 17:45

Re: Notepad++ Autocomplete XML

Post by MaDDoX »

With IntelliJ's latest version, install the EmmyLua plugin, set language level to 5.1 and add mocaccino/SDK to 'Additional Sources Root':
idea64_2023-12-31_19-58-47.png
Post Reply

Return to “Lua Scripts”