
( zedrem.BBEdit is the leading professional HTML and text editor for macOS.

You can use Zed to edit local files as well as remote files on any server. Zed is a fully offline-capable, open source, keyboard-focused, text and code editor for power users. IMO the best feature it has is the ability to natively edit live on an SFTP server. It's a cross-platform app (OSX, Windows, Linux and Chrome OS). Of course, Emacs has good integration with version control software. That way, you always have a trace of working versions and you can easily revert to an older version if you introduce a bug. When you have a working version, commit it, then deploy it to the server. You will save yourself a host of trouble if you use version control. One mistake and your site is toast - overwrite the wrong file or the wrong version and you've lost.

Editing code live on the server? Oh dear. That being said, I do not recommend this workflow. you open a directory, Emacs shows you its file browser, which is called Dired. To open a remote file, specify the hostname and protocol, e.g.

Other benefits of Emacs include that it's well documented, powerful, and extensible with a ton of plugins. It's cross-platform (available on just about any Unix variant - get it from your package manager, or more recent versions for OSX, as well as on Windows and a few more exotic systems). It's free (it's one of the historical highlights of the free software movement). It's good (this is subjective so I simply assert that it is good I do use it daily). Emacs ( home page) meets all your requirements.
