SecureCRT 9.0配置字体颜色

2022-10-29  本文已影响0人  Tess鱼丸

SecureCRT 9.0配置字体颜色的,方法略有不同,但差别不大

2020-06-02:

先需要下载两份后缀为.ini的配置文件文件,放篇尾了自行copy。

\color{red}{1.第一步,在}SecureCRT\color{red}{安装路径下的}config\color{red}{文件夹目录下新建}keywords\color{red}{文件夹}
第一步,在SecureCRT安装路径下的config文件夹目录下新建keywords文件夹

第一步

\color{red}{2.第二步,把文章结尾处的代码} copy \color{red}{到刚刚创建的} keywords \color{red}{文件夹下保存为后缀为} .ini \color{red}{的格式}
\color{black}{(!!!建议使用vscode来创建.ini文件并进行保存!!!)}

第二步

\color{red}{3.第三步,打开ScureCRT8.0进入全局选项,}
   \color{red}{正在运行ScureCRT8.0的需要先关掉后把前两部完成再打开}

第三步

\color{red}{4.第四步,选择配置路径下的配置文件夹,修改为}SecureCRT``\``main``\``config\color{red}{下的}keywords\color{red}{文件夹}

第四步

\color{red}{5.第五步,进入全局-默认会话选项,点击编辑默认设置}

第五步

\color{red}{6.第六步,}
\color{red}{上面的} Current color scheme \color{red}{ 是设置字体款式及前进背景颜色的可以自定义到自己喜爱的, }
\color{red}{ 下面的 } Highlight keywords \color{red}{是高亮关键词,也正是本题的关键 }
\color{red}{这里可以看到一句显示我们刚刚添加的两个配置文件了,推荐使用Cisco worlds那款}

第六步

\color{red}{老方法是可以在Appearance里设置Highlight keyworlds,但是新的9.2版本中需要到下一个选项中去设置}

新版本

\color{red}{正常情况下这里会显示}

image.png
\color{red}{但是如果这里不显示那就去他的配置文件夹里把之前编辑的两份.ini高亮配置文件复制过来。在重启软件就可以了}
image.png

\color{red}{7.第七步,记得只需要勾选} color \color{red}{选项}

第七步

\color{red}{推荐使用}简书分享的

D:"Match Case"=00000000
Z:"Keyword List V2"=00000016
 "(no(t)?(connect)?)|((shut)?(down)?)",000000ff,00000001
 "(dis((able(d)?)|(connect(ed)?)|(allow(ed)?)|(card(ed)?))|(error(s)?))|(fail((ure)|(ed))?)|((city)?[w]{2}m)|(den((y)|(ied)){1})",000000ff,00000001
 "red|administratively|undo|unknown|fault|block|refused|problem|warnings|alerts|critical|delete|inactive|unassigned",000000ff,00000001
 "(([7-9]\d)|(100))(\.\d{0,2})?\%",000000ff,00000001
 "green|up|forward|full|active",0000ff00,00000001
 "(connect(ed)?)|(permit(ed)?)|(estab(lish)?(ed)?)|(enable(d)?|(allow(ed)?))",0000ff00,00000001
 "(([0-3](\d)?)|\d{1})(\.\d{0,2})?\%",0000ff00,00000001
 "(bgp|(ospf(v3)?)|(rip(ng)?)|eigrp|static|odr|unr|(is(\-)?is)|pim|direct)(\-\d*)?",00ff8000,00000001
 "cyan|ipv6|tcp|udp|(i(c|g)mp)|gre|esp|ah|isakmp|(arp(a)?)|dhcp|(http(s)?)|dns|((t)?ftp)|telnet|ssh|www|ntp|radius|tacacs|pop\d|smtp|ppp|fr(ame(\-)?relay)?|hdlc",00ff8000,00000001
 "standby|vrrp|glbp|(mst(p)?)|((r)?stp)|spanning\-tree|dot1q|802\.1q",00ff8000,00000001
 "ldp|tdp|mpls|aaa|(account(ing)?)|(auth((entication)|(orization)))|nat|bfd|nqa|sla|rtr|vrf|vpn(\-instance)?",00ff8000,00000001
 "(((passive\-)|(silent\-))?interface)|(in|out)((bound)|(put))?",00ff00ff,00000001
 "magenta|router|redistribute|(import(\-route)?)|export|network|neighbor|peer|area|acl|(class((ifier)|(\-map)))|behavior|policy(\-map)?",00ff00ff,00000001
 "access\-((list)|(class)|(group))|ip\-prefix|prefix\-list|(route(\-.*)?)|(traffic.*)",00ff00ff,00000001
 "[4-6]\d((\.\d{0,2})?)\%",00ff00ff,00000001
 "((fast)?|(gigabit)?)ethernet((\d)?\d\/)*(\d)+(\.\d{1,4})?",000080ff,00000001
 "\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(\/(\d){0,2})?",000080ff,00000001
 "([A-Fa-f0-9]{1,4}::?){1,7}[A-Fa-f0-9]{1,4}(\/(\d){0,3})?",000080ff,00000001
 "([0-9a-fa-f]{4}[.|-][0-9a-fa-f]{4}[.|-][0-9a-fa-f]{4})|([0-9a-fa-f]{2}[.|-]){5}[0-9a-fa-f]{2}",000080ff,00000001
 "\d{1,2}\.([0-9a-fA-F]{2,4}.){1,11}\d{1,2}",000080ff,00000001
 "(orange|ge|fa|fe|(eth((\-)?(trunk)?))|null|loopback|tunnel|dialer|bri|serial|atm|pos|(vlan(if)?))(((\d)?\d\/)*(\d)+)?",000080ff,00000001
 "((virtual\-(template|ppp|access))|(channel\-group)|(port\-channel)|(ether(\-)?channel))(((\d)?\d\/)*(\d)+)?",000080ff,00000001

blogs分享的

S:"Keyword List"=
D:"Match Case"=00000000
Z:"Keyword List V2"=00000047
 "[*]For_Best_Results:_Set_Forground_Font_To_Gray_(Not_Black!)",00808080,00000001
 "[*]Gray_Keywords_Are_To_Work_Around_Symbol_Delimited_Words",00808080,00000001
 "[*]Special_Cases_That_Had_To_Be_ReOrderd",000000ff,00000001
 ".*'.*",00808080,00000001
 "on-fail.*",000000ff,00000001
 "[*]In_Enable_Mode",00d26900,00000001
 "^\w[^>]*#|hostname",00d26900,00000001
 "[*]NOT_In_Enable_mode",00808000,00000001
 "^\w[^#]*>",00808000,00000001
 "[*]Interfaces",00d26900,00000001
 "Embedded-Service-Engine\d\/\d",00d26900,00000001
 ".*thernet[0-9]+(?:[\/\.:][0-9]+)+[,:]?(?:\x20|$)",00d26900,00000001
 ".*thernet[0-9]+[,:]?(?:\x20|$)",00d26900,00000001
 "\b[efgt][a-z]*[0-9]+(?:[\/.:][0-9]+)+[,:*]?(?:\x20|$)",00d26900,00000001
 "[fgm][aeu][0-9]+[,:*]?(?:\x20|$)",00d26900,00000001
 "(?:nvi|port-channel|Serial|Po|vfc)[0-9|\/|:|,]+[,:.]?(?:\x20|$|[0-9]+)",00d26900,00000001
 "(?:multi|lo[^c]|tun|mgmt|null)[a-z]*[0-9]+,?",00d26900,00000001
 "con[0-9]?|vty|line|aux|console",00d26900,00000001
 "[*]Fiber_WWN",004080ff,00000001
 "wwn|pwwn|(?:[a-f0-9]{2}:){7}[a-f0-9]{2}",004080ff,00000001
 "[*]IP,_IP:Port,_and_Subnet_Mask",00408000,00000001
 "i?(?:[0-9]{1,3}\.){3}[0-9]{1,3}(?:\/[0-9]{1,2}|:[0-9]{1,5})?(?:,(?:[0-9]{1,5})?)?",00006400,00000001
 "(?:)(?:0|255)\.(?:[0-9]{1,3}\.){2}[0-9]{1,3}",00008080,00000001
 "[*]MAC_Address",00408000,00000001
 "(?:[a-f0-9]{2}[:-]){5}[a-f0-9]{2}",00408000,00000001
 "[a-f0-9]{4}\.[a-f0-9]{4}\.[a-f0-9]{4}",00408000,00000001
 "[*]IOS_Version",000080ff,00000001
 "\d*\d*\.\d*\((?:\d|[a-z])*\)[^,]*|\d\d?\.\d\d?\.\d\d?\.\D\D?",000080ff,00000001
 "[*]Serial_Numbers",000080ff,00000001
 "(?:[a-z]{2}.\d{4}.{4})",000080ff,00000001
 "[*]Good_Words_To_See",0036d700,00000001
 "(?:yes|permit|\[OK\]|on|enabled).?",0036d700,00000001
 "down->up|running|.*SUCCESS.*|.*success.*|up.?(?:\x20|$)|passed.*|Complete",0036d700,00000001
 "[*]Bad_Words_To_See",000000ff,00000001
 ".*_ERR:|.*fail.*|invalid|.*reload.*",000000ff,00000001
 "no|administratively|shut.*|never,?|deny|.*down.?",000000ff,00000001
 "not|initializing.?|Off|1024|768|des|des56.*",000000ff,00000001
 "telnet|half-duplex.?|\(err-disabled\)|disabled",000000ff,00000001
 "up->down|trunk|Active|inhibit",000000ff,00000001
 "[*]Misc_Words",00000080,00000001
 "(?:class|policy|service|parameter|match)(?:-map.?|-policy.?)?",00000080,00000001
 "(?:version|PN|SN|S\/N|ID|PID|VID|NAME|DESCR):?",00000080,00000001
 "Device|ID|Local|Intrfce|Holdtme|Capability|Platform|Port|ID",00000080,00000001
 "H|Address|Interface|Hold|Uptime|SRTT|RTO|Q|Seq",00000080,00000001
 "Neighbor|V|AS|MsgRcvd|MsgSent|TblVer|InQ|OutQ|Up/Down|State/Pf.*",00000080,00000001
 "interface|IP-Address|Method|OK\?|Status|Protocol",00000080,00000001
 "aaa|vlan\d*|description.?|MTU|BW|DLY|Vl[0-9]+",00000080,00000001
 "bits\/sec,|packets\/sec",00006400,00000001
 "[*]Important_Words_To_See",000000ff,00000001
 "Building|configuration\.\.\.",000000ff,00000001
 "erase|remove|delete.",000000ff,00000001
 "\[confirm\]|\(yes/no\):.*|\[yes\/no\]:.*|.*-more-.*",000000ff,00000001
 ".*-more-.*",000000ff,00000001
 "username.*|password.*|key|.*-key",004080ff,00000001
 "[*]Access_Lists",000080ff,00000001
 "\(hitcnt=0\)",00808080,00000001
 "\(hitcnt=[1-9][0-9]*\)",004080ff,00000001
 "access-(?:lists?|class|group)|use-acl|prefix-list",000080ff,00000001
 "time-range|object-group|route-map",000080ff,00000001
 "[*]Progress_Bars_And_Remarked_Lines",00408000,00000001
 "remark|\*+|!+|###+|@+$",00006400,00000001
 "\[#+(?:\x20|$)|^\](?:\x20|$)",0000d9d9,00000001
 "\[#+\]",00009f00,00000001
 "[*]Services",00a54e8c,00000001
 "ftp|tcp|udp|tftp|scp|ssh|ntp|snmp.*|inspect|icmp",00a54e8c,00000001
 "router|eigrp|bgp|ospf|rip|gre|hsrp",00a54e8c,00000001
 "Syslog_Messages",000080ff,00000001
 "%.+-[0-9]-.+:|\b.*\.(?:bin|tar)",004080ff,00000001
 "[*]Set_Default_Font_Color",00808080,00000001
 "[*]Helps_Work_Around_Symbols_As_Word_Delimiters",00808080,00000001
 ".*|setasregextosetdefaultcolor",00808080,00000000

上一篇下一篇

猜你喜欢

热点阅读