[Skip to content]

2.3. File Types

Jalopy provides formatting support for different file types. On the File Types settings page you can specify what file types should be supported and what files belong to a specific file type.

Figure 2.19. File types settings page

File types settings page

2.3.1. File types

Lets you enable/disable support for specific file types. Formatting is enabled by adding a file type to the list and disabled by removing it from the list. After a file type has been added, all associated files are formatted by the corresponding formatting module.

Add...

Lets you add new file types. Pressing the button will invoke a dialog where you can select from a fixed list of available file types to add.

Figure 2.20. Add file type

Add file type

Select one or several file types and press the Add button to add them to the list. Please note that Jalopy will automatically register some well known file extensions for each file type you add. You might want to review these mappings and adjust them at your wish. Please refer to Section 2.3.2, “File extensions” below.

Remove

Lets you remove an already defined file type and thus disable formatting for the file type. Select one or several file types and press the Remove button to alter the list. Please note that the button is only available if at least one file type is selected.

2.3.2. File extensions

Lets you associate specific file extensions with file types. For each file type you need to define at least one unique file extension. During a run, Jalopy will determine the file extension of a file and checks whether it is associated with a file type. If a file type can be found, Jalopy will use the corresponding formatting module to format the file. Otherwise, the file will be skipped and no formatting applied.

Add...

Lets you add new file extensions. Pressing the button will invoke a dialog where you can enter a new file extension. Please note that the button is only available if a file type is selected in the file types list.

Figure 2.21. Add file extension

Add file extension

Enter a file extension and press the Add button to add it to the list. File extensions can be either specified by simply typing the bare name like “cpp” or prepending a dot or the “*.” pattern before the name, e.g. “*.php”.

Remove

Lets you remove an already defined file extension. Select one or several file extensions and press the Remove button to alter the list. Each file type must have at least one associated file extension in order to enable formatting for the file type. If no file extension is associated with a file type, no formatting will be applied for the file type! Please note that the button is only available if both a file type is selected in the file types list and at least one file extension in the file extensions list.