GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

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

filetypes.conf - the file type configuration of highlight

This config file contains filename extensions and shebang patterns which are mapped to highlight's syntax definitions.

If there is only one extension, just name the lang file accordingly and it will work (no entry 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 assembler 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 nevertheless 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.

{ Lang='purebasic', Extensions={'pb', 'pbi'} }

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

Andre Simon <as@andre-simon.de>

highlight(1) man page
2019-03-12 Andre Simon

Search for    or go to Top of page |  Section 5 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.