9

BBEdit Hosts File Syntax Highlighting

 2 years ago
source link: https://akrabat.com/bbedit-hosts-file-syntax-highlighting/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

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

This article was posted on 23 June 2022 in Software

Thoughts? Leave a reply Cancel reply

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

Comment *

Name *

Email *

Website

Post navigation

Rob Allen is a sofware consultant and developer concentrating on HTTP APIs. He develops in PHP, Python and other interesting languages, contributing to rst2pdf, Slim Framework, Apache OpenWhisk amongst other OSS projects. Based in Worcester, UK, he runs Nineteen Feet and is the author of Zend Framework in Action.

Around the web:
Framing Focus blog
Twitter: @akrabat
Instagram: akrabatic
Flickr: photos
GitHub: Rob Allen
IRC: akrabat on freenode

Search

Other pages

Books I've written


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK