转载自:https://jingyan.baidu.com/article/948f5924ceffbdd80ff5f9b9.html
进入SecureCRT->选项->全局选项
找到配置文件路径,如下图,我的配置文件在C:\Users\Administrator\AppData\Roaming\VanDyke\Config目录下
如以上路径被隐藏,可在组织->文件夹和搜索选项->查看->高级设置中,勾选“显示隐藏的文件、文件夹和驱动”
进入此目录后,创建Keywords文件夹
Keywords文件夹中创建文本文件,将以下文字复制进去,重命名为Highlights.ini
D:"Match Case"=00000001 Z:"Keyword List V2"=0000004e "(::FFFF)?::?(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])",00ffff00,00000001 "\[\d{1,10}:\d{1,10}\](?:(?:[0-9A-Fa-f]{1,4}:){7}[0-9A-Fa-f]{1,4}|(?=(?:[0-9A-Fa-f]{0,4}:){0,7}[0-9A-Fa-f]{0,4}(?![:.\w]))(([0-9A-Fa-f]{1,4}:){1,7}|:)((:[0-9A-Fa-f]{1,4}){1,7}|:)|(?:[0-9A-Fa-f]{1,4}:){7}:|:(:[0-9A-Fa-f]{1,4}){7})(?![:.\w])",00ffff00,00000001 "\[\d{1,3}(\.\d{1,3}){3}:\d{1,10}\](?:(?:[0-9A-Fa-f]{1,4}:){7}[0-9A-Fa-f]{1,4}|(?=(?:[0-9A-Fa-f]{0,4}:){0,7}[0-9A-Fa-f]{0,4}(?![:.\w]))(([0-9A-Fa-f]{1,4}:){1,7}|:)((:[0-9A-Fa-f]{1,4}){1,7}|:)|(?:[0-9A-Fa-f]{1,4}:){7}:|:(:[0-9A-Fa-f]{1,4}){7})(?![:.\w])",00ffff00,00000001 "(\d{1,10}:){2}(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])",00ffff00,00000001 "(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9]):\d{1,10}:(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])",00ffff00,00000001 "(?:(?:[0-9A-Fa-f]{1,4}:){7}[0-9A-Fa-f]{1,4}|(?=(?:[0-9A-Fa-f]{0,4}:){0,7}[0-9A-Fa-f]{0,4}(?![:.\w]))(([0-9A-Fa-f]{1,4}:){1,7}|:)((:[0-9A-Fa-f]{1,4}){1,7}|:)|(?:[0-9A-Fa-f]{1,4}:){7}:|:(:[0-9A-Fa-f]{1,4}){7})(?![:.\w])",00ffff00,00000001 "\d{3,4}d\d{2}h",0000ffff,00000001 "((2[0-3]|[01][0-9])(:([0-5]?[0-9])){2}\.\d{3}|(2[0-3]|[01][0-9])(:([0-5]?[0-9])){1,2}|\d{1,4}d\d{2}h))",00b3b3b3,00000001 "((RT:)?\d{1,10}:\d{2,10}|(RT:)?\d{1,10}:[1-9])",00ff8000,00000001 "(RT:)?(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9]):\d{2,5}|(RT:)?(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9]):[1-9])",00ff8000,00000001 "(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])",00ffff00,00000001 "(GigabitEthernet\d/\d{1,2}\.\d{1,10}|GigabitEthernet\d/\d{1,2}|Gi\d/\d{1,2}\.\d{1,10}|Gi\d/\d{1,2}|G\d/\d{1,2}\.\d{1,10}|G\d/\d{1,2})",00ffcc66,00000001 "(FastEthernet\d/\d{1,2}\.\d{1,10}|FastEthernet\d/\d{1,2}|Fa\d/\d{1,2}\.\d{1,10}|Fa\d/\d{1,2}|F\d/\d{1,2}\.\d{1,10}|F\d/\d{1,2})",00ffcc66,00000001 "(Ethernet\d/\d{1,2}\.\d{1,10}|Ethernet\d/\d{1,2}|Et\d/\d{1,2}\.\d{1,10}|Et\d/\d{1,2}|E\d/\d{1,2}.\d{1,10}|E\d/\d{1,2})",00ffcc66,00000001 "(Serial\d/\d\.\d{1,10}|Serial\d/\d|Se\d/\d\.\d{1,10}|Se\d/\d|S\d/\d\.\d{1,10}|S\d/\d)",00ffcc66,00000001 "(Loopback\d{1,10}|Lo\d{1,10}|L\d{1,10}|Tunnel\d{1,3}|Tu\d{1,3}|T\d{1,3}|Vlan\d{1,4}|Vl\d{1,4})",00ffcc66,00000001 "(Portchannel\d{1,2}|Po\d{1,2}|NVI\d{1,2}|Virtual-Template\d{1,3}|Virtual-Access\d{1,3}\.\d{1,10}|Virtual-Access\d{1,3}|Vi\d{1,3}\.\d{1,10}|Vi\d{1,3}|Multilink\d{1,10}|Mu\d{1,10}|Dialer\d{1,3}|Di\d{1,3}|BVI\d{1,3})",00ffcc66,00000001 "(down|Down|DOWN|fail|failed|not|bad|never|BLK|fddi|n\-isl|isl|notconnect|blocking|\(tdp\)|tdp|TDP|denied|invalid|err\-disabled|unusable|DENIED)",000000ff,00000001 "err\-disable|infinity|inaccessible|\*ROOT_Inc|BKN\*|\*LOOP_Inc|wrong|K2=1|K4=1|K5=1|cannot|MM_NO_STATE|MM_KEY_EXCH|UP\-NO\-IKE|K[13]=(\d{2,3}|[02-9])|K[245]=(\d{2,3}|[1-9]))",000000ff,00000001 "(rstp|best|ldp|CIST|QM_IDLE|(IP|L|CDP)CP\+|CHAP\+|PAP\+|(IP|L|CDP)CP\[Open\]|our_master|UP\-ACTIVE)",0000ff00,00000001 "(\*\>|FWD|root|Root|802\.1q|connected|LocalT|yes|\(ldp\)|ldp|\(SU\)|\(RU\)|forwarding|synchronized|active|rapid\-pvst|up|Up|UP|FULL)",0000ff00,00000001 "(errors|error|err|reset|act/unsup|dhcp|DHCP|mismatch|notconnect|drops|dropped|runts|CRC|collisions|collision|LRN|learning|listening|LIS|unsynchronized)",0000ffff,00000001 "(Peer\(STP\)|Shr|Edge|pvst|ieee|Bound\(PVST\)|INIT|TFTP|Mbgp|LAPB|l2ckt\(\d{1,10}\)|DCE|DTE|passive|\[ANY\]|r|RIB\-failure|discriminator|Standby)",0000ffff,00000001 "(aggregate(d|\/\w*)|atomic\-aggregate|\[V\]|ATTEMPT|INIT|2WAY|EXCHANGE|LOADING|\(global\)|tag|key-chain|md5|backup\/repair|repair|v2\/D|v2\/SD)",0000ffff,00000001 "(Condition\-map|Advertise\-map|no\-advertise|no\-export|local\-AS|internet)",0000ffff,00000001 "(Cost:pre\-bestpath|0x880\d):\d{1,10}:\d{1,10}",00b3b3b3,00000001 "(bgp|BGP|B|IGP|incomplete|\d{2,7}\/nolabel\(\w*\)|RR\-client|Originato|cluster\-id|Cluster\-id|Cluster|Route\-Reflector)",00ff8000,00000001 "%BGP\-\d\-\w*",00ff8000,00000001 "%BGP_SESSION\-\d\-\w*",00ff8000,00000001 "(OSPF_VL\d{1,2}|OSPF_SL\d{1,2}|VL\d{1,2}|SL\d{1,2}|Type\-\d|ospf|OSPF|O|IA|E[12]|N[12]|P2P|P2MP|BDR|DR|ABR|ASBR|LOOP)",000080ff,00000001 "(DROTHER|POINT_TO_POINT|POINT_TO_MULTIPOINT|BROADCAST|NON_BROADCAST|LOOPBACK|SHAM_LINK|3101|1587|transit|Transit|nssa|NSSA|stub|Stub|Superbackbone)",000080ff,00000001 "(OSPFv3_VL\d{1,2}|OSPFv3\-\d{1,5}\-IPv6|ospfv3|OSPFv3|OI|OE[12]|ON[12]|V6\-Bit|E\-Bit|R\-bit|DC\-Bit|opaque|DROTH)",000080ff,00000001 "(%OSPF\-\d\-\w*|%OSPFV3\-\d\-\w*)",000080ff,00000001 "(EIGRP\-IPv6|EIGRP\-IPv4|eigrp|EIGRP|EX|D|K[13]=1|K[245]=0|Internal|External)",0033cc99,00000001 "%DUAL\-\d\-\w*",0033cc99,00000001 "(rip|RIP|R)",000000ff,00000001 "(PIM\/IPv4|RP\:|v2\/S|BSR)",00ff6666,00000001 "%PIM\-\d\-\w*",00ff6666,00000001 "%MSDP\-\d\-\w*",00ff6666,00000001 "%IGMP\-\d\-\w*",00ff6666,00000001 "(R\d{1,2}%\w*|R\d{1,2}|SW\d{1,2}|BB\d|BB|PE\d{1,2}|CE\d{1,2}|P\d{1,2}|FRS|Sw\d{1,2})",0000ff00,00000001 "\[\d{1,3}/\d{1,12}\]",0000ffff,00000001 "\(\d{1,12}/\d{1,12}\)",0000ffff,00000001 "(DT2|T2)",00ff00ff,00000001 "%\w*\-[012]\-\w*",000000ff,00000001 "%LDP\-\d\-\w*",00ff66cc,00000001 "%LSD\-\d\-\w*",00ff66cc,00000001 "%IPV6_ND\-\d\-\w*",00ffff00,00000001 "%CDP\-\d\-\w*",0000ffff,00000001 "%DHCP\-\d\-\w*",0000ffff,00000001 "%SPANTREE\-\d\-\w*",0000ffff,00000001 "%TDP\-\d\-\w*",0000ffff,00000001 "%SW_DAI\-\d\-\w*",0000ffff,00000001 "%SW_VLAN\-\d\-\w*",0000ffff,00000001 "%PM\-d\-\w*",0000ffff,00000001 "%STORM_CONTROL\-\d-\w*",0000ffff,00000001 "%PV\-\d\-\w*",0000ffff,00000001 "%SPANTREE_FAST\-\d\-\w*",0000ffff,00000001 "%TRACK\-\d\-\w*",0000ffff,00000001 "%TRACKING\-\d\-\w*",0000ffff,00000001 "%FR_EEK\-\d\-\w*",0000ffff,00000001 "%HSRP\-\d\-\w*",0000ffff,00000001 "%SNAT\-\d\-\w*",0000ffff,00000001 "%SEC\-\d\-\w*",0000ffff,00000001 "%IPRT\-\d\-\w*",0000ffff,00000001 "%SYS\-\d\-LOGGINGHOST\w*",0000ffff,00000001 "%PARSER\-\d\-cfglog\w*",0000ffff,00000001 "%ENVMON\-\d\-\w*",0000ffff,00000001 "%EC\-\d\-\w*",0000ffff,00000001 "%GLDP\-\d\-\w*",0000ffff,00000001 "%CRYPTO\-\d\-\w*",0000ffff,00000001 "%NHRP\-\d\-\w*",0000ffff,00000001 "%SNMP\-\d\-\w*",0000ffff,00000001 "%CP\-\d\-\w*",0000ffff,00000001 "%HA_EM\-\d\-\w*",0000ffff,00000001 "%TCP\-\d\-\w*",0000ffff,00000001 "%IP\-\d\-\w*",0000ffff,00000001 "%\w*\-\d\-\w*",00ff66ff,00000001
进入SecureCRT->选项->会话选项
在外观中选择Highlights
编辑添加想要高亮显示的关键字,如DEVICE
效果如下