If you know any other good editors other then the list provided do add in the comments. Some of the Text editors in the list are paid versions but most of them are free! Note that some of the above ones are already available with macOS.
TextEdit: Pre-installed on macOS Big Sur.It's 2021 and we had the M1 Mac's lineup released, and like always whenever I buy a new MacBook and I try to get all my programming software installed the one thing I look for is Notepad++, yes it's still not available for Mac! If you are wondering which are some of the best alternatives that you can choose from then here is our list,