The Jindent Customizer is an editor component for all Jindent settings and environment variables used to describe the formatting rules of code conventions. The user interface supports an integrated help-system which can be invoked easily with one click of the setting in interest. Additionally it provides a full realtime preview for all formatting settings.
The Customizer is part of all Jindent plugins and part of the Jindent Commander. All GUI elements of the Customizer follow the common design rules: Boolean variables are represented by checkboxes, strings can be entered in fields, multi-line templates in text areas and so on.
Due to the embedded extension manager, Jindent is able recognize source code files by its extension (for instance: java, c, cpp, h, hpp, js, sqlj) to choose the right formatting engine for every file. For ambiguous file extension like .h Jindent first tries to format this file as a C source code file and second as C++ source code.
Depending on the used installation package Jindent can be invoked in several ways:
- Invocation of Jindent through native exe-wrapper or execution scripts:
Jindent [-options] [<inputfiles>]
- Invocation of Jindent's shell script on Linux/Unix systems through
sh Jindent.sh [-options] [<inputfiles>]
- Invocation of Jindent through a local Java VM (Java Runtime Environment 1.4 or later is required):
To invoke Jindent correctly all
jarfiles in Jindent's
libdirectory have to be included in Java's CLASSPATH. Then Jindent can be invoked like:
java Jindent [-options] [<inputfiles>]
Examples to run Jindent as a command line tool:
- Print Jindent's help:
- Run Jindent with a specific settings file and format input file:
Jindent -p MyStyle.xjs inputFile
- Run Jindent with a specific settings file and format complete directory and subdirectory structure:
Jindent -r -p MyStyle.xjs inputDir
- Run Jindent with a specific settings file and format complete directory and subdirectory structure. Additionally write
output to a new directory:
Jindent -r -p MyStyle.xjs -d newOutputDir inputDir
- Run Jindent with a specific project file created with JindentCommander, execute the project and suppress all output messages:
Jindent -m -execute MyProject.xjp