man > filetypes.conf(5)

filetypes.conf(5)                        user documentation                        filetypes.conf(5)

NAME
       filetypes.conf - the file type configuration of highlight


DESCRIPTION
       This  config file contains filename extensions and shebang patterns which are mapped to high‐
       light's syntax definitions.

       If there is only one extension, just name the lang file accordingly and it will work (no  en‐
       try needed in this file).

       The filetype entries in gui_files/ext/fileopenfilter.conf should also be updated.

       Extensions  can  be configured for multiple languages (see "asm", which is assigned to assem‐
       bler and fasm).

       The command line (CLI) and Qt GUI builds handle ambiguous assignments as follows:

       - CLI: the first association listed here will be used

       - GUI: a syntax selection prompt will be shown

       If a filename has no extension by convention (ie. makefile), it may be added  here  neverthe‐
       less or be configured as "Shebang".

       Location: The first filetypes.conf found in a highlight search directory wins.

       It's  easily  possible  to  enhance  highlight's database of programming languages and colour
       themes.  See the README file for details.

EXTENSION MAPPING EXAMPLE
       { Lang='purebasic',  Extensions={'pb', 'pbi'} }


SHEBANG MAPPING EXAMPLE
       { Lang='xml', Shebang=[[^\s*<\?xml\s+version='1.0'\s+[^(\?>)]*?>\s*$]] }


AUTHORS
       Andre Simon <as AT andre-simon.de>


SEE ALSO
       highlight(1) man page

Andre Simon                                  2019-03-12                            filetypes.conf(5)

Generated by phpman v4.11.2-35-gf98a251 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-10-07 13:10 @216.73.217.162
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!