[Tool/Web/Other] PAWN API Generator for Notepad++
#1

Hi,

I want to release a small tool that I made for myself recently. Im using Notepad++ as default pawn editor, as it offers some really nice things that pawno cant do. The code completion is a quite nice feature. I once used Slice's tutorial to set everything up, but got tired of the "limited" code completion after a while, as im used to code completions that update themselves whenever you add a new function to your code. Notepad++ just completes what you tell it to complete in a xml file.

And what my tool does, is automatically creating those xml files from your code. It is still in an experimental stage and a bit buggy, but it works as it should.
Its written in Java (hit me for that shit if you like) without a real GUI and distributed as .jar. To launch it, double-clicking should work for most people. If it doesnt, enter the console, jump to the .jar's directory, and type
Код:
java -jar PawnAPIGenerator.jar
It scans the given directory recursively for all include files. PWNs like gamemodes arent processed yet.
If everything goes fine, it will create two files, PAWN.xml and userDefineLang.xml. You might need to merge the userDefineLang.xml with yours, if you got several user defined languages for notepad++. Copy and install the files as explained in Slice's tutorial, but dont take the uploaded ones, but the generated files. This way you got your own API in notepad++, containing all functions you wrote (stock, public, native, and non-modified), all defines and custom tags, just like with modern IDEs. Whenever you like, run it again and overwrite the xmls with the up to date files.

You can also specify the file targets as optional parameters:
Код:
java -jar PawnAPIGenerator.jar <path to pawn source directory> <target for PAWN.xml> <target for userDefineLang.xml>
e.g. to overwrite them directly. This way you can add it to your notepad++ execute script for compiling, so the api is updated on every compile (note that it takes a restart of n++ anyways to reload the files).


Bugs
Already way less. Some of the known bugs:

Defines arent considered yet (#defines are added to the API, but not considered as replacements)
Functions with multitag parameters ( {_,Float}:... ) wont be detected correctly.
Some people got version problems with the jar, see the following:

Problems with running the jar?
Someone reported me a versioning problem with the jar. If you cant run the .jar file, try recompiling it. Therefore use this link to download the source, unzip it, and run build.bat to recompile it automatically. Note that you need the Java 7 SDK for that. If everything went fine, the new .jar should appear in the same directory and should work for your system.


Download
Github source (gonna be updated frequently)
.jar download

Feel free to give some feedback or suggestions.
Reply


Messages In This Thread
PAWN API Generator for Notepad++ - by Mauzen - 29.05.2012, 19:18
Re: PAWN API Generator for Notepad++ - by Shadow_ - 29.05.2012, 21:32
Re: PAWN API Generator for Notepad++ - by Mauzen - 01.06.2012, 11:18
Re: PAWN API Generator for Notepad++ - by TheArcher - 01.06.2012, 14:43
Re: PAWN API Generator for Notepad++ - by Mauzen - 01.06.2012, 15:52
Re: PAWN API Generator for Notepad++ - by juraska - 31.10.2012, 08:20
Re: PAWN API Generator for Notepad++ - by VIRUXE - 23.01.2013, 15:46
Re: PAWN API Generator for Notepad++ - by T0pAz - 05.02.2013, 03:31
Re: PAWN API Generator for Notepad++ - by LarzI - 03.03.2013, 21:11
Re: PAWN API Generator for Notepad++ - by Mauzen - 03.03.2013, 22:01

Forum Jump:


Users browsing this thread: 1 Guest(s)