A fresh take on a comprehensive syntax highlighter for Cisco IOS, NX-OS, and IOS-XE configurations
CiscoSyntax by BadWifi brings intelligent syntax highlighting to your Cisco configuration files, making them easier to read, understand, and troubleshoot.
- 📡 Interface Recognition - All interface types (Ethernet, GigabitEthernet, TenGigabitEthernet, Port-Channel, Loopback, VLAN, Tunnel, Serial, Cellular, and more)
- 🌍 IP Addressing - IPv4, IPv6 (full and condensed), CIDR notation, and MAC addresses
- 🔐 Security & Crypto - ACLs (access-lists, access-groups), crypto maps, transform-sets, and object-groups
- 🔀 Routing Protocols - BGP configurations (peer-groups, peer-policies, peer-sessions, neighbors)
- 🏷️ VRF Support - VRF definitions and forwarding instances
- 📊 QoS Policies - Class-maps, policy-maps, and service-policies
- 💬 Comments & Descriptions - Clearly distinguished configuration comments and interface descriptions
- 🎨 Command Modes - Visual distinction between user mode (#) and privileged mode (>)
- 🚫 Disabled Commands - Special highlighting for
noanddefaultcommands
.ios.cisco.config.log- note that .txt can be defaulted to this by selecting
View->Syntax->Open all with current extension as...
All Screenshots taken using Ayu-dark sublime theme.
Once published to Package Control:
- Open Sublime Text
- Press
Ctrl+Shift+P(Windows/Linux) orCmd+Shift+P(Mac) - Type "Package Control: Install Package"
- Search for "CiscoSyntax BadWifi"
- Press Enter to install
Option 1: Using Git (Recommended)
-
Navigate to your Sublime Text
Packagesfolder:- Windows:
%AppData%\Sublime Text\Packages\ - Mac:
~/Library/Application Support/Sublime Text/Packages/ - Linux:
~/.config/sublime-text/Packages/
- Windows:
-
Clone this repository:
git clone https://github.com/badwifi/CiscoSyntax-Badwifi-Sublime-syntax.git "CiscoSyntax BadWifi" -
Restart Sublime Text
Option 2: Direct Download
- Download the latest release
- Extract the contents to your Sublime Text
Packagesfolder (see paths above) - Ensure the folder is named
CiscoSyntax BadWifi - Restart Sublime Text
The syntax highlighter will automatically activate for files with these extensions:
.ios.cisco.config.log
For other file types:
- Open your Cisco configuration file
- Click on the syntax name in the bottom-right corner (or press
Ctrl+Shift+P/Cmd+Shift+P) - Select "Set Syntax: CiscoSyntax BadWifi"
Contributions are welcome! If you find a bug or want to add support for additional Cisco commands:
- Fork the repository
- Create a feature branch (
git checkout -b feature/your-feature) - Commit your changes (
git commit -m 'Add some feature') - Push to the branch (
git push origin feature/your-feature) - Open a Pull Request
Found a bug or missing syntax highlighting? Open an issue with:
- A description of the problem
- Sample configuration snippet
- Expected vs actual highlighting behavior
This project is licensed under the MIT License - see the LICENSE file for details.
If you find this syntax highlighter useful, please:
- ⭐ Star this repository
- 🐛 Report bugs or request features via Issues
- 🔀 Submit pull requests to improve the highlighting
Created and maintained by Michael Burk, CCIE #50207 Badwifi.dev

