Menu ▾ ▴

Language for cisco

2009-03-23
2012-11-13
  • Captain Doogles

    Captain Doogles - 2009-03-23

    Is there a language color scheme for notepad++ for cisco pix, switch or routers?

    If not how would I go about making one?

     
    • Chris Molanus

      Chris Molanus - 2009-07-01

      This was my stab at it, its very sloppy with doubles and missing commands. The Keyword categories aren't exactly logical ether but it works for me:

          <UserLang name="Cisco_ASA_8.04" ext=".asa">
              <Settings>
                  <Global caseIgnored="no" />
                  <TreatAsSymbol comment="no" commentLine="yes" />
                  <Prefix words1="no" words2="no" words3="no" words4="no"/>
              </Settings>
              <KeywordLists>
                  <Keywords name="Delimiters">000000</Keywords>
                  <Keywords name="Folder+"></Keywords>
                  <Keywords name="Folder-"></Keywords>
                  <Keywords name="Operators">( )</Keywords>
                  <Keywords name="Comment">1 1^C 2^C 0!</Keywords>
                  <Keywords name="Words1">no shutdown management-only outside inside any LOCAL</Keywords>
                  <Keywords name="Words2">inspect permit deny netmask tcp-udp tcp udp eq aes-256 3des sha md5</Keywords>
                  <Keywords name="Words3">address speed duplex nameif security-level vlan class extended accounting authentication authorization network-object service-object ospf transform-set security-association encryption hash group lifetime dns-server vpn-tunnel-protocol split-tunnel-network-list default-domain url-list address-pool default-group-policy pre-shared-key match ips version server source</Keywords>
                  <Keywords name="Words4">aaa abr absolute absolute-timeout accept accept-lifetime access-class access-enable access-expression access-list access-mode access-point access-point-name access-profile access-template access-violation accounting acc-qos acs-gv-2594ac-01! action-type activation-character ada-nst-6118ap-01-confg adapter address addressed-key address-family advertise aesa afdeling: agent aggregate-address alias allow-connections alps alt-dial answer-address apollo append-after appletalk application aps arap archive area area-address area-password arp arq asp associate async async-bootp atm atm-address atmsig attach au-4 audio-prompt authen authentication authorization auto autobaud auto-cost auto-cut-through autodetect autohangup auto-polarity autoselect auto-summary backup bandwidth banner battery-reversal begin bert bfe bgp bgp-policy bind bindid boot bootfile bridge bridge-group broadcast bsc bsc-char-set bstun buckets-of-history-kept buffers bump bundle busy-message busyout cable cablelength cac cache cadence-list cadence-max-off-time cadence-min-on-time cadence-variation calendar call callback called-number caller-id call-history-mib call-manager-fallback calltracker call-type call-waiting cap-list card carrier-delay cas-custom cas-group catalyst cbr ccm-manager ccs cd cdp cef certificate ces ces-cdv ces-clock channel-group channel-protocol chat-script class class-bundle class-int class-map class-range class-vc claw clear cli clid client client-atm-address client-identifier client-name clns clock clockrate clock-select clp-bit cmns cmpc cmt cns codec community-list compand-type compatible compress condition conf config config-register configuratie configuration configure conform-action confreg connect connection continue controller control-plane copy corlist cpp cptone crc crc4 crl cross-connect crypto csna ctunnel ctype current customer customer-id custom-queue-list cut-through databits data-character-bits data-pattern date-format dbconn dce-terminal-timing dce-terminal-timing-enable deadtime de-bit debug decnet default default-file default-information default-metric default-name default-profile default-router default-value define delay delete deny description destination-pattern detect device-id dhcp-gateway-address dhcp-server diag dial-control-mib dialer dialer-group dialer-list dial-peer dialplan-pattern dial-shelf dial-tdm-clock dial-type digit-strip dir direct-inward-dial disable disc_pi_off disconnect disconnect-ack disconnect-character dispatch-character dispatch-machine dispatch-timeout distance distribute-list distribute-sap-list distributions-of-statistics-kept dlsw dlur dlus-backup dnis dnsix-dmdp dnsix-nat dns-server domain domain-id domain-name domain-password dot11 downward-compatible-config down-when-looped ds0 ds0-group dscp dsl dsl-mode dsn dsp dspfarm dspint dspu dsu dte-invert-txc dtmf-relay dtmf-timer-inter-digit duplex dxi dynamic e2-clockrate early-token-release echo-cancel editing efci-bit eigrp enable enabled encapsulation encr encryption encryptorder end enrollment erase errdisable escape-character ethernet ethernet-transit-oui etz-bv-1945sr-01-confg evaluate exceed-action exception exec exec-banner exec-character-bits exec-timeout execute-on exit exit-address-family expect-factor exponential-weighting-constant export extended-port fabric faildetect fair-queue fax fax-rate fax-relay fddi fdl file filter-for-history firmware flowcontrol force-local-chap format forward-digits forwarding-agent frame-relay framing fras fras-host fr-atm freq-max-delay freq-max-deviation freq-max-power freq-min-power freq-pair freq-power-twist frequency ftp-server full-duplex full-help gatekeeper gateway generic-pool gigabitethernet1/0/2 gigabitethernet1/0/3 glbp global gprs group gw-accounting gw-type-prefix h225 h323 h323-gateway half half-duplex hardware-address hash help hidekeys hier history hold-character holding-time hold-queue hops-of-statistics-kept host hostname hours-of-statistics-kept hssi http-raw-request hub huntstop hw-module icmp-echo icpif idle idle-time idle-timeout idle-voltage ignore ignore-dcd ignore-hw ignore-lsp-errors ilmi ima image imaging ima-group imli impedance import inarp incoming index initiate-to ino input input-queue insecure inservice int interface intergamma international invert invert-transmit-clock ip ip-access-group ip-address-pool ipv6 ipx isdn isis iso-igrp is-type ivr keepalive keepalive-lifetime keepalive-time kerberos key keylen keymap keymap-type key-string kpn kron l l2f l2relay l2tp lan lane lan-name lapb lat lbo lcp lease length lex lifetime limit line linecode line-power link link-test list listen-point lives-of-history-kept llc2 lnm load-interval loadsharing locaddr-priority locaddr-priority-list local local-bypass local-lnm location lock lockable log log-adjacency-changes log-adj-changes logging login login-string log-neighbor-changes logout-warning loopback loop-detect loss-plan lrq lsap lsp-gen-interval lsp-mtu lsp-refresh-interval lsr-path lu mac-address macro main-cpu management manager map-class map-group map-list mask match max max-conferences max-conn max-connection maxconns max-dn max-ephones max-forwards maximum maximum-lus maximum-paths max-llc2-sessions max-lsp-lifetime max-redirects max-reserved-bandwidth max-users mdix mdl mdn media-type member memory memory-size menu mep metric metric-style mgcp microcode mid mkdir mls mmi mmoip mode modem modemcap modem-pool monitor mop more motd-banner mpls mpn-hhw-1703wb-01-confg\0\0\0&#x00AE; mpoa mrinfo mrm mstat mta mtrace mtu multicast multilink multilink-group multiring music-threshold name name-connection named-key nasi nat national ncia negotiation neighbor net netbios netbios-name-server netbios-node-type network network-clock network-clock-priority network-clock-select network-clock-switch network-id next-address next-server no noc node non-linear nrzi-encoding nsap ntp number numbering-type num-exp oam oam-bundle oam-pvc oam-range oam-svc offload offset-list on onfig onfiguratie operation option origin output output-delay owner pad padding parity parser partition passive-interface password path paths-of-statistics-kept peer periodic permission permit physical-layer ping playout-delay police policy-list policy-map pool pool-member pool-range port pos posi pots power ppp pppoe pptp prc-interval precedence pre-dial predictor preference preferred-nnserver prefix pre-shared-key pri-group printer priority priority-group priority-list private privilege proceedings. process-max-time profile progress_ind prompt protect protocol protocol-type proxy pu pulse-time pvc pvc-bundle pvc-in-range pwd qllc qos question queue-limit queue-list queue-set quit radius-server random-detect random-detect-group range rate-limit rcapi rd real reassign receivers redistribute redundancy refuse-message register registered-caller registration reload remark rename req-qos request request-data-size request-dialin reset resource resource-pool response-data-size response-time response-timeout resume retry retry-delay retry-limit reverse-route revocation-check rif ring ring-speed rlogin rmdir rmon rnmc roaming root rotary rotary-group route route-aggregation route-map router router-id route-target routing rsakeypair rsh rsrb rtr rtsp rule rx-limit rxspeed samples-of-history-kept sap-priority sap-priority-list sccp scheduler scheduler-interval scramble scrambling scrambling-payload script scripting sdlc sdllc sdspfarm sec-profile security send senders send-lifetime sequence-numbers serial sername server servercert serverfarm service service-module service-policy session session-limit session-timeout set set-overload-bit settle-call settlement setup sgbp sgcp shape shelf-id shortcut-frame-count shortcut-frame-time show shut shutdown signal signal-type sip-server sip-ua slave slip smds smp-server smrp smt-queue-threshold sna snapshot snasw snmp snmp-server sntp sonet source source-address source-bridge source-ip spanning-tree spe special-character-bits speed spf-interval squeeze squelch srp srp-deficit-round-robin srr-queue sscop ssl ssrp standby start-character start-chat start-forwarding-agent state-machine state-tracks-signal station statistics-distribution-interval sticky stopbits stop-character storm-control stun subcell-mux subject-name subscriber-policy subscription-required summary-address supervisory svc switch synchronization synguard system t1 table-map tacacs+ tacacs-server tag tag-control-protocol tag-switching tarp tcp-port tdm-group tech-prefix tel: telephony-service telnet template term terminal terminal-queue terminal-type terminate-from test tftp-server tg this threshold time-format timeout timeouts timer time-range timers timeslot timeslot[s time-zone timing timing-mark tn3270 tn3270-server token-root-name top tos tpversion=2.0.0 trace track traffic-engineering traffic-shape traffic-share transfer-system translate translate-outgoing translation-profile translation-rule transmit-buffers transmit-clock-internal transmit-interface transmit-priority transmitter-delay transport trunk trunkgroup trunk-group trust ts16 ttycap tug-2 tunnel txconn tx-queue-limit tx-ring-limit txspeed type u ubr ubr+ udld udp-jitter udp-port unbind-action unbundle undelete unless upgrade url use-interface use-proxy user-locale username vacant-message vad validate-update-source vbr-nrt vbr-rt vc-class vc-group vc-hold-queue verify verify-data version vew-vnz-ams-cr02-confg vines violate-action virtual virtual-profile virtual-template vlan vofr voice voice-card voice-class voice-port voip-incoming vpdn vpdn-group vrf vrn vrrp vse-amr-1822bn-01-confg vtp vty vty-async warm-reboot webvpn weight where which-route width write wrr-queue x25 x28 x29 x3 xmodem xns xpose xremote xsm</Keywords> 
              </KeywordLists>
              <Styles>
                  <WordsStyle name="DEFAULT" styleID="11" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" />
                  <WordsStyle name="FOLDEROPEN" styleID="12" fgColor="804000" bgColor="FFFFFF" fontName="" fontStyle="0" />
                  <WordsStyle name="FOLDERCLOSE" styleID="13" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" />
                  <WordsStyle name="KEYWORD1" styleID="5" fgColor="000080" bgColor="FFFFFF" fontName="" fontStyle="1" />
                  <WordsStyle name="KEYWORD2" styleID="6" fgColor="800000" bgColor="FFFFFF" fontName="" fontStyle="0" />
                  <WordsStyle name="KEYWORD3" styleID="7" fgColor="400080" bgColor="FFFFFF" fontName="" fontStyle="0" />
                  <WordsStyle name="KEYWORD4" styleID="8" fgColor="FF0000" bgColor="FFFF00" fontName="" fontStyle="3" fontSize="10" />
                  <WordsStyle name="COMMENT" styleID="1" fgColor="008080" bgColor="FFFFFF" fontName="" fontStyle="0" />
                  <WordsStyle name="COMMENT LINE" styleID="2" fgColor="008040" bgColor="FFFFFF" fontName="" fontStyle="2" />
                  <WordsStyle name="NUMBER" styleID="4" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" />
                  <WordsStyle name="OPERATOR" styleID="10" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" />
                  <WordsStyle name="DELIMINER1" styleID="14" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" />
                  <WordsStyle name="DELIMINER2" styleID="15" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" />
                  <WordsStyle name="DELIMINER3" styleID="16" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" />
              </Styles>
          </UserLang>

       
    • Thell Fowler

      Thell Fowler - 2009-03-24

      You'll need the keywords then you can make one using the 'User Defined Language'.  If that doesn't have everything you want to do then an external lexer would be the way to go; which would actually be pretty cool since you could then do the different modes as different highlights as well as the keyword highlighting.

      I'm actually sort-of surprised that there isn't one already for Scintilla/Scite.

      Do a forum search for either of those two options and you should have a wealth of info.