{
    "mode": "man",
    "parameter": "filetypes.conf",
    "section": "5",
    "url": "https://www.chedong.com/phpMan.php/man/filetypes.conf/5/json",
    "generated": "2026-10-09T09:58:38Z",
    "sections": {
        "NAME": {
            "content": "filetypes.conf - the file type configuration of highlight\n\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "This  config file contains filename extensions and shebang patterns which are mapped to high‐\nlight's syntax definitions.\n\nIf there is only one extension, just name the lang file accordingly and it will work (no  en‐\ntry needed in this file).\n\nThe filetype entries in guifiles/ext/fileopenfilter.conf should also be updated.\n\nExtensions  can  be configured for multiple languages (see \"asm\", which is assigned to assem‐\nbler and fasm).\n\nThe command line (CLI) and Qt GUI builds handle ambiguous assignments as follows:\n\n- CLI: the first association listed here will be used\n\n- GUI: a syntax selection prompt will be shown\n\nIf a filename has no extension by convention (ie. makefile), it may be added  here  neverthe‐\nless or be configured as \"Shebang\".\n\nLocation: The first filetypes.conf found in a highlight search directory wins.\n\nIt's  easily  possible  to  enhance  highlight's database of programming languages and colour\nthemes.  See the README file for details.\n",
            "subsections": []
        },
        "EXTENSION MAPPING EXAMPLE": {
            "content": "{ Lang='purebasic',  Extensions={'pb', 'pbi'} }\n\n",
            "subsections": []
        },
        "SHEBANG MAPPING EXAMPLE": {
            "content": "{ Lang='xml', Shebang=[[^\\s*<\\?xml\\s+version='1.0'\\s+[^(\\?>)]*?>\\s*$]] }\n\n",
            "subsections": []
        },
        "AUTHORS": {
            "content": "Andre Simon <as@andre-simon.de>\n\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "highlight(1) man page\n\nAndre Simon                                  2019-03-12                            filetypes.conf(5)",
            "subsections": []
        }
    },
    "summary": "filetypes.conf - the file type configuration of highlight",
    "flags": [],
    "examples": [],
    "see_also": [
        {
            "name": "highlight",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/highlight/1/json"
        }
    ]
}