Recently I've downloaded SuperCat but I can't get it to work. There is always a message:
can't find a config file
Although I've created it in ~/.spcrc/spcrc
.
Anyone knows what's going on?
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.
Sign up to join this communityRecently I've downloaded SuperCat but I can't get it to work. There is always a message:
can't find a config file
Although I've created it in ~/.spcrc/spcrc
.
Anyone knows what's going on?
The name of your config file is incomplete. The associated file type is missing.
Here is an excerpt from https://www.linuxjournal.com/node/1005732
All rules for colorizing text are stored in files with names of the form spcrc-ext, where "ext" is the file type. These files are stored in the configured "system directory" or else your private ~/.spcrc directory. For example, the rules for a C source code file in spcrc-c might look like:
# HTML COLOR NAME COL A N T STRING or REGULAR EXPRESSION
#################### ### # # # ################################################################
Red red b ([a-zA-Z][a-zA-Z0-9_]*)[[:space:]]*\(
Brown yel b (while|for|if|switch|main|return)[[:space:]]*\(
Brown yel b (else)
Cyan cya b [[:space:]]*(include)
Green grn (do)[[:space:]]*\{
Cyan cya (case|return|default)
Green grn (break|continue)[[:space:]]*;
Magenta mag (int|char|short|float|double|long|unsigned)[[:space:]]
Blue blu b [^[:alnum:]_]([[:digit:]]+)
Brown yel "(.*)"
Brown yel <(.*)>
Magenta mag c :;