CotEditor is an open-sourced, Cocoa-based plain-text editor for macOS. It supports syntax highlighting, has a powerful find-and-replace with the regular expression, and other small goodies for coding. It can handle also CJK languages well.
What's new in CotEditor
Add an additional workaround to detour the bug in macOS 10.14 that crashes/freezes the application