Developing software in the Real World

BBEdit Hosts File Syntax Highlighting

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:
BBEdit window showing hosts file syntax highlighting

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

One thought on “BBEdit Hosts File Syntax Highlighting

Thoughts? Leave a reply

Your email address will not be published. Required fields are marked *