Skip to content

Instantly share code, notes, and snippets.

@dschneller
Created February 9, 2015 20:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dschneller/8f90442c29b436e8211e to your computer and use it in GitHub Desktop.
Save dschneller/8f90442c29b436e8211e to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>BBEditDocumentType</key>
<string>CodelessLanguageModule</string>
<key>BBLMLanguageDisplayName</key>
<string>Dell Switch</string>
<key>BBLMLanguageCode</key>
<string>DlSw</string>
<key>BBLMSuffixMap</key>
<array>
<dict>
<key>BBLMLanguageSuffix</key>
<string>.config</string>
</dict>
</array>
<key>BBLMColorsSyntax</key>
<true/>
<key>BBLMKeywordList</key>
<array>
<string>bandwidth</string>
<string>channel-group</string>
<string>channel-group</string>
<string>clock</string>
<string>configure</string>
<string>default-gateway</string>
<string>description</string>
<string>exit</string>
<string>feature</string>
<string>hostname</string>
<string>interface</string>
<string>ip</string>
<string>lacp</string>
<string>level</string>
<string>logging</string>
<string>member</string>
<string>name</string>
<string>peer-keepalive</string>
<string>role</string>
<string>slot</string>
<string>snmp-server</string>
<string>sntp</string>
<string>spanning-tree</string>
<string>stack</string>
<string>switchport</string>
<string>system</string>
<string>username</string>
<string>vlan</string>
<string>vpc</string>
</array>
<key>BBLMPredefinedNameList</key>
<array>
<string>acceptable-frame-type</string>
<string>active</string>
<string>add</string>
<string>address</string>
<string>allowed</string>
<string>client</string>
<string>community</string>
<string>console</string>
<string>debugging</string>
<string>default-gateway</string>
<string>disable</string>
<string>domain</string>
<string>enable</string>
<string>encrypted</string>
<string>engineid</string>
<string>file</string>
<string>general</string>
<string>informational</string>
<string>jumbo</string>
<string>local</string>
<string>mode</string>
<string>mtu</string>
<string>name-server</string>
<string>native</string>
<string>off</string>
<string>on</string>
<string>passive</string>
<string>password</string>
<string>peer-link</string>
<string>priority</string>
<string>privilege</string>
<string>recurring</string>
<string>route</string>
<string>routing</string>
<string>server</string>
<string>summer-time</string>
<string>tagged-only</string>
<string>tagged</string>
<string>trunk</string>
<string>unicast</string>
<string>vlan</string>
<string>vpc</string>
</array>
<key>BBLMCommentLineDefault</key>
<string>!</string>
<key>Language Features</key>
<dict>
<key>Identifier and Keyword Character Class</key>
<string>A-Za-z0-9_-</string>
<key>Open Line Comments</key>
<string>!</string>
<key>Open Strings 1</key>
<string>&quot;</string>
<key>Close Strings 1</key>
<string>&quot;</string>
<key>Escape Char in Strings 1</key>
<string>\</string>
<key>End-of-line Ends Strings 1</key>
<true/>
<key>Prefix for Functions</key>
<string>function</string>
</dict>
</dict>
</plist>
@dschneller
Copy link
Author

First draft of a BBEdit / TextWrangler Language Module for the Dell Switch Command Line Interface Language. This first version only contains the few commands I need on a regular basis, not covering the vast amount of other commands the switches support.

To use this

  1. Download the file
  2. Save it as ~/Library/Application Support/TextWrangler/Language Modules/DellSwitch.plist
  3. Restart TextWrangler

From now on, files with a .config extension should be highlighted according to the rules in this file. If they are not, you can pick "Dell Switch" from the language chooser at the bottom of the window.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment