Have you tried BBEdit?
This is something I always noticed with the Mac app ecosystem. Even sometimes the most basic apps are paid. Windows and Linux has a much better free/FOSS and freeware app selection BY FAR.
https://www.barebones.com/products/bbedit/faqs.html#no_licen...