1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76
|
extension "bioSyntax"
# Version 0.1
styletemplate "\x1b[$stylem$text\x1b[m"
styleseparator ";"
bold "01$style"
underline "04$style"
italics "03$style"
color "$style"
colormap
# Nucleotide Colors
"black" "30;48;5:253" # header
"darkgreen" "30;48;5;10" # A
"darkred" "30;48;5;09" # C
"darkblue" "30;48;5;33" # G
"brown" "30;48;5;214" # T
"gray" "38;5;250" # NX, clip
# Text Class
"blue" "38;5;62" # Numeric
"red" "38;5;160" # Keyword, string, mismatch
"green" "38;5;28" # Keyword2, chr
"purple" "38;5;39" # Keyword3, library, insertion
"yellow" "38;5;166" # Keyword4, software, deletion
"cyan" "38;5;54" # Keyword5,
# BW Gradient coloring 5 step
"teal" "38;5;243;48;5;0" # Gradient bw1
"pink" "38;5;243;48;5;237" # Gradient bw3
"orange" "38;5;237;48;5;243" # Gradient bw6
"brightorange" "38;5;242;48;5;249" # Gradient bw8
"brightgreen" "38;5;250;48;5;255" # Gradient bw10 +
default "30;"
end
####################
# Code color help
#####################
#
# 256 code color control template:
# Code : \033[AA;FF;BBm
# AA (attributes) : 00|01|03|04|05|07|22|23|24|25|27
# FF (foreground) : 38;05;color
# BB (background) : 48;05;color
# color : 000-255
# see: http://www.calmar.ws/vim/256-xterm-24bit-rgb-color-chart.html
#
#
# True-color (24 bit) - bioSyntax should be using 256-colors
# FF (foreground) : 38:2:r:g:b
# BB (background) : 48:2:r:g:b
#
# Attributes meaning
# 00 Reset
# 01 Bold
# 03 Italic
# 04 Underline
# 05 Blink (doesn't work when a background is set)
# 07 Reverse (swap foreground and background)
# 22 No Bold
# 23 No Italic
# 24 No Underline
# 25 No Blink
# 27 No Reverse
#
# Any of AA,FF,BB may be omited.
# Reset code (default color/attribute): \033[m
#
# Examples:
# -> Hello world in color 226 (=> yellow):
# echo -e "\033[38;05;226mHello, World"
# -> Hello world in bold blanking yellow:
# echo -e "\033[01;05;38;05;226mHello, World"
# -> Hello world in bold yellow with a red background:
# echo -e "\033[01;38;05;226;48;05;196mHello, World"
|