A Python script that reads from the Inno Setup XML source files that are used to create the official help documentation. The script will use xpath methods to get the data required.
It can make files for SciTE for autocomplete, calltips, styling etc.
- inno.properties
- innocode.api
- innocommon.api
- innocomponents.api
- innodirs.api
- innofiles.api
- innoicons.api
- innoini.api
- innoinstalldelete.api
- innolangoptions.api
- innolanguages.api
- innopreprocessor.api
- innoregistry.api
- innorun.api
- innosetup.api
- innotasks.api
- innotypes.api
- innouninstalldelete.api
- innouninstallrun.api
The reason for so many api files is that make-scite-collection has an inno\extension.lua file which may change the api property setting depending on the Inno Setup section being currently edited. If all the api files were merged together, then directives, functions, keywords and procedures for all sections could cause confusion with the autocomplete and calltips in the current section being edited.
The files will be written into a folder named output in the same directory. Some files may be temporary such as a JSON file and cleaned XML files which maybe created for viewing what the operations and results are based on.
- Get main.zip source file from the jrsoftware/issrc repository. If you have the repository cloned then that could be a good alternative to use.
- Extract into the same directory as generate_inno_api.py.
- Rename issrc-main to issrc if needed, as a cloned repository is named the later and issrc is what the script is setup to use.
- Customize the settings at the top of generate_inno_api.py to your preference.
- Execute the script.