Do syntax highlighting without opening editor

Zach DeCook <[email protected]> Fri, 24 Jan 2020 01:23:09 -0500
Newsgroups gmane.editors.nano.general
Message-ID <[email protected]>
Is there a method (or neat trick) to create syntax-highlighted-output into stdout without opening the editor? (Or perhaps are there other syntax-highlighting tools that can use nanorc files as config?)

Something like `nanosyntaxhighlight filename.md`

I'm really fond of my nanorc files, and want an easy-to-use preview tool for a more consistent terminal experience.