mc/doc/filehighlight.txt
Slava Zanko 4afc04eedc Ticket #418: File coloring
Added support of filenames highlighting in panels.

Now rules of highlighting described into external file filehighlight.ini
Number of highlight rules is unlimited (in opposite to X-Stranger patch).

Highlight will made by:
 * file type (directory, regular, symlink, special device etc.)
 * extensions of filenames (ends of filenames)
 * regular expressions

Big thanks to X-Stranger <x@linux.by> for idea
and to Alexey Kaminsky <alexeykaminsky@gmail.com> for testing.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-09-03 13:12:17 +03:00

31 lines
764 B
Plaintext

Main section [filehighlight] contain key names as highlight groups and values as color pairs
color pair described as 'foreground;background'. 'background' may be omited.
other sections describe filegroup of highlight.
Keys in these groups:
type
- file type. if present, all other option ignored;
regexp
- regular expression. If present, 'extensions' option ignored;
extensions
- list of extensions of files. Separated by ';' sign.
'type' key may have values:
- FILE - all files.
- FILE_EXE
- DIR - all directoryes
- LINK_DIR
- LINK (all links except stale link)
- HARDLINK
- SYMLINK
- STALE_LINK
- DEVICE (all device files)
- DEVICE_BLOCK
- DEVICE_CHAR
- SPECIAL (all special files)
- SPECIAL_SOCKET
- SPECIAL_FIFO
- SPECIAL_DOOR