Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
dd9f0bd
Add files via upload
MicahKezar Jan 21, 2025
82a30ef
Delete Cisco_IOS_XE_byOsamaAbbas.udl.xml
MicahKezar Jan 21, 2025
885b22f
Add files via upload
MicahKezar Jan 21, 2025
16da4df
Delete assets/preview.jpg
MicahKezar Jan 21, 2025
7865bd7
Add files via upload
MicahKezar Jan 21, 2025
db5423d
Update README.md
MicahKezar Jan 21, 2025
d170a3b
Add files via upload
MicahKezar Jan 21, 2025
f3ebd48
Delete assets/preview.jpg
MicahKezar Jan 21, 2025
95e567f
Rename Cisco_IOS_XE_byOsamaAbbas (Dark_Mode_byMicahKezar).udl.xml to …
MicahKezar Jan 21, 2025
faf8521
Update README.md
MicahKezar Jan 21, 2025
abdd420
Update README.md
MicahKezar Jan 21, 2025
190f5a4
Update README.md
MicahKezar Jan 21, 2025
0f36f41
Add files via upload
MicahKezar Jan 21, 2025
a280741
Update README.md
MicahKezar Jan 21, 2025
4868acf
Update README.md
MicahKezar Jan 21, 2025
48ec118
Update README.md
MicahKezar Jan 21, 2025
76d6cb3
Update README.md
MicahKezar Jan 21, 2025
7f1f9e3
Update .gitignore
MicahKezar Jan 21, 2025
548b240
Update LICENSE
MicahKezar Jan 21, 2025
0fef937
Create Cisco_IOS_XE_byOsamaAbbas.udl.xml
MicahKezar Jan 21, 2025
cad5f24
Create original_README.md
MicahKezar Jan 21, 2025
7f24039
Rename Cisco_IOS_XE_byOsamaAbbas.udl.xml to original_Cisco_IOS_XE_byO…
MicahKezar Jan 21, 2025
6918dcb
Update README.md
MicahKezar Jan 21, 2025
e0e5f59
Update README.md
MicahKezar Jan 21, 2025
44bb411
Update README.md
MicahKezar Jan 21, 2025
baaf41b
Update README.md
MicahKezar Jan 21, 2025
92203b1
Update README.md
MicahKezar Jan 21, 2025
d44c078
Update README.md
MicahKezar Jan 21, 2025
25b5f3b
Update README.md
MicahKezar Jan 21, 2025
4ec7894
Update README.md
MicahKezar Jan 21, 2025
08e8977
Add files via upload
MicahKezar Jan 21, 2025
392cbf7
Delete assets/before_and_after.jpg
MicahKezar Jan 21, 2025
a13729c
Add files via upload
MicahKezar Jan 21, 2025
8dd6037
Update README.md
MicahKezar Jan 21, 2025
9b5b039
Update README.md
MicahKezar Jan 21, 2025
7eff4c6
Update README.md
MicahKezar Jan 21, 2025
feb193c
Update README.md
MicahKezar Jan 21, 2025
9ae8f10
Update README.md
MicahKezar Jan 21, 2025
05d98fb
Update README.md
MicahKezar Jan 21, 2025
866c0d9
Add files via upload
MicahKezar Jan 22, 2025
082fbc6
Update README.md
MicahKezar Jan 22, 2025
6f0c6fd
Update README.md
MicahKezar Jan 22, 2025
c0e2abd
Update README.md
MicahKezar Jan 22, 2025
34fa5ab
Update README.md
MicahKezar Jan 22, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 62 additions & 0 deletions Cisco_IOS_XE_Dark_Mode_byMicahKezar.udl.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
<NotepadPlus>
<UserLang name="Cisco IOS XE" ext="cisco ios log txt conf config" udlVersion="2.0">
<Settings>
<Global caseIgnored="yes" allowFoldOfComments="no" forceLineCommentsAtBOL="no" foldCompact="no" />
<Prefix Keywords1="no" Keywords2="no" Keywords3="no" Keywords4="no" Keywords5="yes" Keywords6="no" Keywords7="no" Keywords8="no" />
</Settings>
<KeywordLists>
<Keywords name="Comments" id="0">00! 00remark 01 02((EOF)) 03 04</Keywords>
<Keywords name="Numbers, additional" id="1">:</Keywords>
<Keywords name="Numbers, prefixes" id="2"></Keywords>
<Keywords name="Numbers, extras with prefixes" id="3"></Keywords>
<Keywords name="Numbers, suffixes" id="4"></Keywords>
<Keywords name="Operators1" id="5">. /</Keywords>
<Keywords name="Operators2" id="6"></Keywords>
<Keywords name="Folders in code1, open" id="7"></Keywords>
<Keywords name="Folders in code1, middle" id="8"></Keywords>
<Keywords name="Folders in code1, close" id="9"></Keywords>
<Keywords name="Folders in code2, open" id="10"></Keywords>
<Keywords name="Folders in code2, middle" id="11"></Keywords>
<Keywords name="Folders in code2, close" id="12"></Keywords>
<Keywords name="Folders in comment, open" id="13">{</Keywords>
<Keywords name="Folders in comment, middle" id="14"></Keywords>
<Keywords name="Folders in comment, close" id="15">}</Keywords>
<Keywords name="Keywords1" id="16">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</Keywords>
<Keywords name="Keywords2" id="17">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</Keywords>
<Keywords name="Keywords3" id="18">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</Keywords>
<Keywords name="Keywords4" id="19">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</Keywords>
<Keywords name="Keywords5" id="20">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</Keywords>
<Keywords name="Keywords6" id="21">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</Keywords>
<Keywords name="Keywords7" id="22"></Keywords>
<Keywords name="Keywords8" id="23"></Keywords>
<Keywords name="Delimiters" id="24">00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23</Keywords>
</KeywordLists>
<Styles>
<WordsStyle name="DEFAULT" styleID="0" fgColor="D6D6D6" bgColor="3F3F3F" fontName="Consolas" fontStyle="0" nesting="0" />
<WordsStyle name="COMMENTS" styleID="1" fgColor="80FF80" bgColor="3F3F3F" fontName="Consolas" fontStyle="0" nesting="117702655" />
<WordsStyle name="LINE COMMENTS" styleID="2" fgColor="80FF80" bgColor="3F3F3F" fontName="Consolas" fontStyle="0" nesting="117702655" />
<WordsStyle name="NUMBERS" styleID="3" fgColor="FF8080" bgColor="3F3F3F" fontName="Consolas" fontStyle="1" nesting="0" />
<WordsStyle name="KEYWORDS1" styleID="4" fgColor="FFD700" bgColor="3F3F3F" fontName="Consolas" fontStyle="1" nesting="0" />
<WordsStyle name="KEYWORDS2" styleID="5" fgColor="80C0FF" bgColor="3F3F3F" fontName="Consolas" fontStyle="0" nesting="0" />
<WordsStyle name="KEYWORDS3" styleID="6" fgColor="FF8080" bgColor="3F3F3F" fontName="Consolas" fontStyle="1" nesting="0" />
<WordsStyle name="KEYWORDS4" styleID="7" fgColor="80FF80" bgColor="3F3F3F" fontName="Consolas" fontStyle="1" nesting="0" />
<WordsStyle name="KEYWORDS5" styleID="8" fgColor="80C0FF" bgColor="3F3F3F" fontName="Consolas" fontStyle="0" nesting="0" />
<WordsStyle name="KEYWORDS6" styleID="9" fgColor="FF80FF" bgColor="3F3F3F" fontName="Consolas" fontStyle="0" nesting="0" />
<WordsStyle name="KEYWORDS7" styleID="10" fgColor="D6D6D6" bgColor="3F3F3F" fontName="Consolas" fontStyle="0" nesting="0" />
<WordsStyle name="KEYWORDS8" styleID="11" fgColor="D6D6D6" bgColor="3F3F3F" fontName="Consolas" fontStyle="0" nesting="0" />
<WordsStyle name="OPERATORS" styleID="12" fgColor="D6D6D6" bgColor="3F3F3F" fontName="Consolas" fontStyle="0" nesting="0" />
<WordsStyle name="FOLDER IN CODE1" styleID="13" fgColor="FFB86C" bgColor="3F3F3F" fontName="Consolas" fontStyle="1" nesting="0" />
<WordsStyle name="FOLDER IN CODE2" styleID="14" fgColor="D6D6D6" bgColor="3F3F3F" fontName="Consolas" fontStyle="0" nesting="0" />
<WordsStyle name="FOLDER IN COMMENT" styleID="15" fgColor="D6D6D6" bgColor="3F3F3F" fontName="Consolas" fontStyle="0" nesting="0" />
<WordsStyle name="DELIMITERS1" styleID="16" fgColor="FF80C0" bgColor="3F3F3F" fontName="Consolas" fontStyle="0" nesting="0" />
<WordsStyle name="DELIMITERS2" styleID="17" fgColor="D6D6D6" bgColor="3F3F3F" fontName="Consolas" fontStyle="0" nesting="0" />
<WordsStyle name="DELIMITERS3" styleID="18" fgColor="D6D6D6" bgColor="3F3F3F" fontName="Consolas" fontStyle="0" nesting="0" />
<WordsStyle name="DELIMITERS4" styleID="19" fgColor="D6D6D6" bgColor="3F3F3F" fontName="Consolas" fontStyle="0" nesting="0" />
<WordsStyle name="DELIMITERS5" styleID="20" fgColor="D6D6D6" bgColor="3F3F3F" fontName="Consolas" fontStyle="0" nesting="0" />
<WordsStyle name="DELIMITERS6" styleID="21" fgColor="D6D6D6" bgColor="3F3F3F" fontName="Consolas" fontStyle="0" nesting="0" />
<WordsStyle name="DELIMITERS7" styleID="22" fgColor="D6D6D6" bgColor="3F3F3F" fontName="Consolas" fontStyle="0" nesting="0" />
<WordsStyle name="DELIMITERS8" styleID="23" fgColor="D6D6D6" bgColor="3F3F3F" fontName="Consolas" fontStyle="0" nesting="0" />
</Styles>

</UserLang>
</NotepadPlus>
29 changes: 23 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,24 @@
# Cisco IOS XE Commands Syntax Highlighting
# Dark Mode Support for Cisco IOS XE Commands Syntax Highlighting in Notepad++

<br />

<img src="assets/cisco-logo.png" alt="Cisco Logo" title="Cisco" width="300" style="display: block;"/>

<br />

> 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 `<UserLang>`.

```xml
Expand All @@ -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++.
Binary file added assets/before_and_after.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/darkmodepreview.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/diffchecker.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/originalWtMd_originalDkMd_revisedDkMd.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed assets/preview.jpg
Binary file not shown.
29 changes: 29 additions & 0 deletions original_files/original_README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Cisco IOS XE Commands Syntax Highlighting

<br />

<img src="assets/cisco-logo.png" alt="Cisco Logo" title="Cisco" width="300" style="display: block;"/>

<br />

> 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 `<UserLang>`.

```xml
<UserLang name="Cisco IOS XE" ext="cisco ios xe log conf config" udlVersion="2.0">
```

3. Save the UDL file.
4. Restart NotePad++.

## Preview

![Preview](assets/preview.jpg)