BBEdit Hosts File Syntax Highlighting

Written by Rob Allen / Original link on Jun. 23, 2022

While editing my Hosts file in BBEdit, I wondered how hard it would be to create syntax highlighting for it. A quick google later, I discovered that I needed to create a Codeless Language Module and this is my first attempt:

To install, download Hosts.plist and copy to your iCloud Drive's BBEdit/Application Support/Language Modules directory, restart BBEdit and you're done.

I've kept it really simple and just highlight comments and the IP address, but it makes it much easier to edit my hosts file, so I'm calling it a success

roballen roballen

« PHP Internals News: Episode 103: Disjunctive Normal Form (DNF) Types - Skip Webpack when Testing »