CotEditor for Mac is a lightweight text editor for macOS, free of charge. Don’t look at its crisp interface, but it actually supports a wide range of voices (in addition to plain text, you can also edit HTML, CSS, Python, Ruby, Perl, Markdown, Textile, LaTeX, etc.).
The text editor automatically colour categorises the code files and basically all common programming languages can be edited in it.
In the window settings you can change the status bar options, the window size, the horizontal and vertical orientation of the split indicators and other parameters.
Find and replace support, including options for regular expressions, ignoring upper case characters, etc.
Syntax checking
Support for vertical text editing