The geany-syntax repository provides a collection of syntax files for Geany. The following syntax files are available:
- filetypes.Mallard.conf — A syntax file for the Mallard XML language according to Mallard 1.0 DRAFT (as of 2013-02-11). See also my geany-snippets repository for snippets for this language.
To install any of the available syntax files, change into the directory with your local copy of this repository and run the following command:
cp filetypes.<filetype>.conf ~/.config/geany/filedefs/
For example, to install the syntax file for Mallard, type:
cp filetypes.Mallard.conf ~/.config/geany/filedefs/
This copies the selected file to the ~/.config/geany/filedefs/ directory. Note that the directory must exist prior to running this command; to create it, type the following at a shell prompt:
install -d ~/.config/geany/filedefs/
To add support for the selected file type, start Geany and select Tools→Configuration Files→filetype_extensions.conf from the menu. This opens the ~/.config/geany/filetype_extensions.conf file in the editor.
-
In the file, add a line in the following format to the [Extensions] section:
<filetype>=*.<extension>;
For example, to add support for the Mallard markup language that uses the .page file extension, type:
Mallard=*.page;
-
In the same file, add the file type to one of the groups in the [Groups] section:
<group>=<filetype>;
For example, to add the Mallard markup language to the Markup group, type:
Markup=Mallard;
The changes take effect the next time you start the editor.
Copyright © 2013 Jaromir Hradilek
This program is free software; see the source for copying conditions. It is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.