Anybody use
Sublime Text? I made a very simple syntax highlighting "addon" for CFG script files. It just highlights double-quoted strings, numbers, and a few keywords (alias, exec, bind, unbind, unbindall, echo, wait). It's very very basic and far from anything perfect, but yeah...thought I'd share it anyway.
Download hereEDIT: This can now be installed with Sublime Package Control from here:
https://packagecontrol.io/packages/CFG%20Configuration%20Syntax%20Highlightingor if that doesn't work, you can find it at GitHub here:
https://github.com/aronj/CFGGameConfigurationSyntaxTo install it, unzip and copy it to "C:\Users\Your User Name\AppData\Roaming\Sublime Text 2\Packages\User\" or wherever appropriate. After that, any CFG file you open should have the syntax highlighting enabled...or you can select "TF2 CFG" (or User>TF2 CFG) in the bottom right of the status bar.
Screenshot (using the Tomorrow Night color scheme and Soda Dark theme):
YAML-tmLanguage code (not necessary, unless you want to modify it and "re-compile" using the AAAPackageDev package):
# [PackageDev] target_format: plist, ext: tmLanguage
---
name: TF2 CFG
scopeName: source.tf2cfg
fileTypes: [cfg]
uuid: d89121ff-1117-472d-8a9a-70cf6c97fe16
patterns:
- comment: numbers
name: constant.numeric.tf2cfg
match: \b\d+\.?(?:\d+)?\b
- comment: double quoted string
name: string.quoted.double.tf2cfg
match: \"[^\"]+\"
- comment: various keywords
name: entity.other.attribute-name.tf2cfg
match: \b(?:wait|echo|exec)\b
- comment: alias
name: entity.name.function.tf2cfg
match: \balias\b
- comment: binds
name: keyword.tf2cfg
match: \b(?:(?:(?:un)?bind(?:all)?))\b
- comment: comment
name: comment.tf2cfg
match: //.*$
...
Hope someone finds it useful