How to Install Sublime Text on macOS using Homebrew

This post provides a step-by-step guide with a list of commands on how to install Sublime Text on macOS using Homebrew. Sublime Text is a proprietary cross-platform source code editor with a Python application programming interface (API). It natively supports many programming languages and markup languages, and functions can be added by users with plugins, typically community-built and maintained under free-software licenses.