Hello! There is something strange around the "define colors by file type" function: as far as I know, a file extension mustn't have a dot. If I add to a color block something similar to *.r0* (rar slice), then the applied dot is not the last (which separates the extension), but the first occurrance, in order of the defined color blocks.
Sample color blocks:
*.exe -- brown
*.r0* -- green
*.jpg -- red
font color for unknown types: navy
result:
test.r01 -- green
test.r01.exe -- brown
test.r01.jpg -- green (jpg, should be red)
test.r01.xyz -- green (unknown file type, should be navy)
with *.r0? (instead of *.r0*) works fine:
test.r01 -- green
test.r01.exe -- brown
test.r01.jpg -- red
test.r01.xyz -- navy
I've found this in the v7.56a, so I updated to the new 7.57a, which works the same way.
define colors by file type joker character
Moderators: Hacker, petermad, Stefan2, white
Problem is that * matches any number of any characters including any number of dots. When you type mask *.r0*, it is unclear that this dot must be the last.
So you may use mask like *.r?;*.r??;*.r??? or template with regex pattern like \.r\d+$.
So you may use mask like *.r?;*.r??;*.r??? or template with regex pattern like \.r\d+$.
Last edited by MVV on 2012-03-22, 09:57 UTC, edited 2 times in total.