Nano's Syntax Highlighting: Rules, Regex Limits, and a Working Go Example
Nano's syntax highlighting is a line-by-line POSIX ERE engine with first-match-wins loading order. Learn how to write custom .nanorc rules, avoid multi-line regex limits, enable true color, and keep large files responsive.