diff --git a/Cisco_IOS_XE_Dark_Mode_byMicahKezar.udl.xml b/Cisco_IOS_XE_Dark_Mode_byMicahKezar.udl.xml new file mode 100644 index 0000000..c11340f --- /dev/null +++ b/Cisco_IOS_XE_Dark_Mode_byMicahKezar.udl.xml @@ -0,0 +1,62 @@ + + + + + + + + 00! 00remark 01 02((EOF)) 03 04 + : + + + + . / + + + + + + + + { + + } + group clock server radius new-model domain name subnet-zero upgrade system timestamps debug datetime msec log version secret modulus privilege pad ssid open guest-mode address route-cache unreachables proxy-arp mode wep optional ciphers tkip wep128 change membership-termination capability-change local cck ofdm client station-role root fallback threshold subscriber-loop-control block-unknown-source source-learning unicast-flooding password authorization authentication login community contact cdp summary arp advertise-v2 host missing Service-Type acct-port auth-port key vsa send route vty aux run help-path source-interface logging transport trap source-learning spanning-disabled Guest Access voice bpduguard bpdufilter port-security mac-address recovery protected dot1Q dhcp client-id access-group traps tty udp eq bootps bootpc accounting network router-id start-stop session-id common exec irb key-management wpa eap dot11d country PT indoor v3 auth write summary view iso included location chassis-id ap authentication-server wds infrastructure priority wnm excluded-address passwords min-length auth-proxy conflict h-node pool range ra trunk native aes-ccm linkdown linkup coldstart warmstart entity config-copy flash disassociate deauthenticate authenticate-fail dot11-qos switch-over rogue-ap wlan-wep config syslog cpu aaa_server udp-port timezone summer-time Z recurring broadcast nat inside source static extendable translation translations tcp-timeout finrst-timeout flow ingress forward-protocol classless time netbios-ns netbios-dgm tacacs+ next-hop secure-server cache flow-export destination flow-aggregation entries helper-address redirects secondary traffic-filter allocation policy ascending access-log ratelimit extended cs4 icmp admission proxy page file connection resource console uptime localtime password-encryption counters max age compress-config general-prefix unicast-routing netflow usage crypto pki trustpoint certificate chain enrollment selfsigned subject-name revocation-check rsakeypair cef action device tracking rp nde-address qos self-signed list bootup level minimal flowcontrol bus auto pvst rapid-pvst redundancy main-cpu auto-sync running-config sso snmptrap ipsec nat-transparency udp-encaps control-plane dial-peer cor custom update-calendar prefer basic- summary-address nonegotiate dead-criteria tries update newinfo mgmt brief attach-policy window-size neighbor connected + aaa switch hostname vrf redistribute configure username algorithm algorithm-type ip neighbors mpls boot license service dot11 mbssid interface Status Protocol Method OK? IP-Address stackwise-virtual int encryption broadcast-key speed power channel rts dot1x reauth-period bridge-group description encapsulation access-list access-class radius-server tacacs-server bridge line copy dir request install software duplex world-mode wlccp security domain-name dns-server netbios-name-server netbios-node-type default-router lease client-identifier mls diagnostic spanning-tree lldp switchport device-tracking errdisable channel-group channel-protocol sntp route-map ntp service-policy policy-map class police class-map router startup-config banner wr storm-control autostate rsa vtp process udld bpdu + no deny timeout inactive exec-timeout session-timeout outside out exceed-action drop expired failure stop-record boot-end-marker error reset end unassigned unset shutdown system-shutdown exit none limit down removal remove removed on-failure cause gbic-invalid off clear standby violation misconfig exit-address-family zeroize exception crashinfo zeroize erase ignore max-fail theft + permit RW RO insertion enable enabled generate verify gt any full match active desirable in conform-action transmit receive reload clean established success boot-start-marker on up set allow allowed YES yes on-success add activate commit auto-copy addon detail complete auto-upgrade guard update-source send-community both trust optimize trusted-key authentication-key authenticate + Ethernet FastEthernet GigabitEthernet TenGigabitEthernet TwentyFiveGigE FortyGigabitEthernet HundredGigE Loopback address-family port-channel stopbits Vlan md5 scrypt sha256 default-gateway BVI Dot11Radio synchronous snooping sticky psecure-violation include option negotiation link IPDT_POLICY provision motd transparent debugging mtu interval buffered channel-misconfig packet renumber general-keys terminal etherchannel lookup smart portfast route-target label standard startupconfig if-authenticated extend inspection + www smtp snmp snmp-server ipv4 ipv6 tftp ftp echo dscp isakmp nntp gopher pop3 imap ident ftp-data sonet default log-input telnet ssh scp tcp http all auto-summary lacp pagp ospf bgp eigrp rip ping fragments + + + 00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/README.md b/README.md index 4f7ca99..7e82de8 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Cisco IOS XE Commands Syntax Highlighting +# Dark Mode Support for Cisco IOS XE Commands Syntax Highlighting in Notepad++
@@ -6,15 +6,19 @@
-> This is an enhanced version of the **User Defined Language (UDL)** made by LuisPisco. His UDL is found [here](https://github.com/notepad-plus-plus/userDefinedLanguages/blob/master/UDLs/Cisco_IOS_byLuisPisco.xml). +> This is a fork of the original Syntax Highlighting project made by [Tes3awy](https://github.com/Tes3awy). I only reskinned it. His project can be found [here](https://github.com/Tes3awy/Cisco-IOS-XE-NotepadPlusPlus-Syntax-Highlight). +> Additionally, the original files have been added to this repo fork. -After Installing [NotePad++](https://notepad-plus-plus.org/downloads/), place the `Cisco_IOS_XE_byOsamaAbbas.udl.xml` file within the `%AppData%\Notepad++\userDefineLangs` folder, and restart NotePad++. +The syntax highlighting UDL found in the original project's [.xml file](https://github.com/Tes3awy/Cisco-IOS-XE-NotepadPlusPlus-Syntax-Highlight/blob/main/Cisco_IOS_XE_byOsamaAbbas.udl.xml) is absolutely incredible. However, as someone who uses Dark Mode on every application, the color conflict was too hard to read. As a result, I revised/reskinned the original .xml file to allow for dark mode compatability / readability. + +## Revised setup instructions from the original project: +After Installing [NotePad++](https://notepad-plus-plus.org/downloads/), place the `Cisco_IOS_XE_Dark_Mode_byMicahKezar.udl.xml` file within the `%AppData%\Notepad++\userDefineLangs` folder, and restart NotePad++. Files with extensions `.cisco`, `.ios`, `.xe`, `.log`, `.txt`, `.conf`, and `.config` will automagically use this new UDL as their default language when opened with NotePad++. Remove or add any extension when desired. To change this behavior: -1. Open the `Cisco_IOS_XE_byOsamaAbbas.udl.xml` file. +1. Open the `Cisco_IOS_XE_Dark_Mode_byMicahKezar.udl.xml` file. 2. For example, remove `txt` from the `ext` property in ``. ```xml @@ -24,6 +28,19 @@ To change this behavior: 3. Save the UDL file. 4. Restart NotePad++. -## Preview +## Original UDL in White Mode, Original UDL in Dark Mode, and Revised UDL in Dark Mode + +![Preview](assets/originalWtMd_originalDkMd_revisedDkMd.png) + +## Specific Color Changes +The only changes I made to the original .xml was to the Hex colors. Here is the Diff Checker: +![Diff](assets/diffchecker.jpg) + +By default, Notepad++ uses `#3F3F3F` as its Dark Mode background color. This was an easy enough change, but still left a minor issue. The rest of the original colors were too dark and hard to read. To remedy this, every color has been tweaked to increase readability. + +### If you wish to completely revamp the color scheme: -![Preview](assets/preview.jpg) +1. Open the `Cisco_IOS_XE_Dark_Mode_byMicahKezar.udl.xml` file. +2. Identify the Keyword and its matching Style you want to change (Alternatively, you can enter the various Hex Values found in the .xml in a [Hex color picker](https://htmlcolorcodes.com/) until you find the color you were trying to identify). +3. Use the same tool in Step 2 to pick a new favorite color, copy the Hex Value, and paste the new value where the original Hex Value was. +4. Save the document and reload Notepad++. diff --git a/assets/before_and_after.jpg b/assets/before_and_after.jpg new file mode 100644 index 0000000..da37cbe Binary files /dev/null and b/assets/before_and_after.jpg differ diff --git a/assets/darkmodepreview.jpg b/assets/darkmodepreview.jpg new file mode 100644 index 0000000..da617f8 Binary files /dev/null and b/assets/darkmodepreview.jpg differ diff --git a/assets/diffchecker.jpg b/assets/diffchecker.jpg new file mode 100644 index 0000000..26dffbf Binary files /dev/null and b/assets/diffchecker.jpg differ diff --git a/assets/originalWtMd_originalDkMd_revisedDkMd.png b/assets/originalWtMd_originalDkMd_revisedDkMd.png new file mode 100644 index 0000000..105ba80 Binary files /dev/null and b/assets/originalWtMd_originalDkMd_revisedDkMd.png differ diff --git a/assets/preview.jpg b/assets/preview.jpg deleted file mode 100644 index f77aca8..0000000 Binary files a/assets/preview.jpg and /dev/null differ diff --git a/Cisco_IOS_XE_byOsamaAbbas.udl.xml b/original_files/original_Cisco_IOS_XE_byOsamaAbbas.udl.xml similarity index 100% rename from Cisco_IOS_XE_byOsamaAbbas.udl.xml rename to original_files/original_Cisco_IOS_XE_byOsamaAbbas.udl.xml diff --git a/original_files/original_README.md b/original_files/original_README.md new file mode 100644 index 0000000..4f7ca99 --- /dev/null +++ b/original_files/original_README.md @@ -0,0 +1,29 @@ +# Cisco IOS XE Commands Syntax Highlighting + +
+ +Cisco Logo + +
+ +> This is an enhanced version of the **User Defined Language (UDL)** made by LuisPisco. His UDL is found [here](https://github.com/notepad-plus-plus/userDefinedLanguages/blob/master/UDLs/Cisco_IOS_byLuisPisco.xml). + +After Installing [NotePad++](https://notepad-plus-plus.org/downloads/), place the `Cisco_IOS_XE_byOsamaAbbas.udl.xml` file within the `%AppData%\Notepad++\userDefineLangs` folder, and restart NotePad++. + +Files with extensions `.cisco`, `.ios`, `.xe`, `.log`, `.txt`, `.conf`, and `.config` will automagically use this new UDL as their default language when opened with NotePad++. Remove or add any extension when desired. + +To change this behavior: + +1. Open the `Cisco_IOS_XE_byOsamaAbbas.udl.xml` file. +2. For example, remove `txt` from the `ext` property in ``. + +```xml + +``` + +3. Save the UDL file. +4. Restart NotePad++. + +## Preview + +![Preview](assets/preview.jpg)