1filetypes.conf(5)             user documentation             filetypes.conf(5)
2
3
4

NAME

6       filetypes.conf - the file type configuration of highlight
7
8

DESCRIPTION

10       This  config  file  contains  filename  extensions and shebang patterns
11       which are mapped to highlight's syntax definitions.
12
13       If there is only one extension, just name the lang file accordingly and
14       it will work (no entry needed in this file).
15
16       The  filetype  entries in gui_files/ext/fileopenfilter.conf should also
17       be updated.
18
19       Extensions can be configured for multiple languages (see  "asm",  which
20       is assigned to assembler and fasm).
21
22       The  command  line (CLI) and Qt GUI builds handle ambiguous assignments
23       as follows:
24
25       - CLI: the first association listed here will be used
26
27       - GUI: a syntax selection prompt will be shown
28
29       If a filename has no extension by convention (ie. makefile), it may  be
30       added here nevertheless or be configured as "Shebang".
31
32       Location:  The  first filetypes.conf found in a highlight search direcā€
33       tory wins.
34
35       It's easily possible to enhance  highlight's  database  of  programming
36       languages and colour themes.  See the README file for details.
37

EXTENSION MAPPING EXAMPLE

39       { Lang='purebasic',  Extensions={'pb', 'pbi'} }
40
41

SHEBANG MAPPING EXAMPLE

43       { Lang='xml', Shebang=[[^\s*<\?xml\s+version='1.0'(\?>)]*?>\s*$]] }
44
45

AUTHORS

47       Andre Simon <as@andre-simon.de>
48
49

SEE ALSO

51       highlight(1) man page
52
53
54
55Andre Simon                       2019-03-12                 filetypes.conf(5)
Impressum