Notepad++ is one of the most popular text editors for Windows, intended as an upgrade from the built-in Windows Notepad, with enhanced support for programming, split-screen views, searching, and much more. You can also use it on Mac, with the right software.
Source : How to Install Notepad++ on Mac