29.05.2012, 19:18
(
Последний раз редактировалось Mauzen; 02.06.2012 в 12:08.
)
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
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:
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.
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
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>
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.