markdown tools
This commit is contained in:
53
highbeam
53
highbeam
@@ -8,20 +8,21 @@ syntax highlighter.
|
||||
Example rules: ( ~/.highbeamrc )
|
||||
--------------------
|
||||
RULES=(
|
||||
"[0-9]" "$C" # Show numbers with Cyan color. NOTE: since the colors are represented with numbers, having this later in the rules will break coloring!
|
||||
"[0-9]" "$c" # Show numbers with Cyan color. NOTE: since the colors are represented with numbers, having this later in the rules will break coloring!
|
||||
"$USER[ ]\+$USER" "$BGC$BLACK" # Use quotes to have rules with spaces. This colors the "ls -la" usernames. background cyan, black text
|
||||
status "$G" # simple word matching, coloring green
|
||||
"^d[^ ]*" "$H$G" # color words at the beginning of line, starting with d. color bright green
|
||||
"q.\{0,3\}r" "$H$Y" # q*r with maximum 3 characters in between. color bright yellow
|
||||
status "$g" # simple word matching, coloring green
|
||||
"^d[^ ]*" "$G" # color words at the beginning of line, starting with d. color bright green
|
||||
"q.\{0,3\}r" "$Y" # q*r with maximum 3 characters in between. color bright yellow
|
||||
)
|
||||
--------------------
|
||||
Rules can be also exressed as a space separated list variable:
|
||||
export HB_RULES='\''"[0-9]" "$C" "g" "$Y"'\''
|
||||
HB_RULES are appended to other rules
|
||||
|
||||
Color variables: $R $G $B $Y $M $C $W $BLACK
|
||||
Modify to bright version by prefixing with $H (e.g. $H$G)
|
||||
Background colors: $BGR $BGG $BGB $BGY $BGC $BGM $BGW
|
||||
Bright colors: $R $G $B $Y $M $C $W $K
|
||||
Dark colors: $r $g $b $y $m $c $w $k
|
||||
Modify to bright version by prefixing with $H (e.g. $H$g)
|
||||
Background colors: $BR $BG $BB $BY $BC $BM $BW
|
||||
|
||||
Usage: highbeam [-c] [-h] [-f config]
|
||||
-c Be case sensitive
|
||||
@@ -38,24 +39,32 @@ H="${E}1m"
|
||||
Z="${E}0m"
|
||||
|
||||
# list of text colors:
|
||||
BLACK="${E}30m"
|
||||
R="${E}31m"
|
||||
G="${E}32m"
|
||||
B="${E}34m"
|
||||
Y="${E}33m"
|
||||
M="${E}35m"
|
||||
C="${E}36m"
|
||||
W="${E}37m"
|
||||
K="${E}1;30m"
|
||||
R="${E}1;31m"
|
||||
G="${E}1;32m"
|
||||
B="${E}1;34m"
|
||||
Y="${E}1;33m"
|
||||
M="${E}1;35m"
|
||||
C="${E}1;36m"
|
||||
W="${E}1;37m"
|
||||
k="${E}30m"
|
||||
r="${E}31m"
|
||||
g="${E}32m"
|
||||
b="${E}34m"
|
||||
y="${E}33m"
|
||||
m="${E}35m"
|
||||
c="${E}36m"
|
||||
w="${E}37m"
|
||||
|
||||
|
||||
# list of BG colors:
|
||||
BGR="${E}41m"
|
||||
BGG="${E}42m"
|
||||
BGB="${E}44m"
|
||||
BGY="${E}43m"
|
||||
BGM="${E}45m"
|
||||
BGC="${E}46m"
|
||||
BGW="${E}47m"
|
||||
BR="${E}41m"
|
||||
BG="${E}42m"
|
||||
BB="${E}44m"
|
||||
BY="${E}43m"
|
||||
BM="${E}45m"
|
||||
BC="${E}46m"
|
||||
BW="${E}47m"
|
||||
|
||||
|
||||
CONF_FILE=~/.highbeamrc
|
||||
|
||||
Reference in New Issue
Block a user