Nushell CodeMirror Highlight Demo
This uses
A basic
CodeMirror 6
editor
tree-sitter-nu
a bit of glue code to convert tree-sitter types to
Lezer
types
bundled together and pushed up to GitHub pages
Note that you can't actually run anything here, all the highlighting happens locally in your browser!
Check out the
source code
.
Vim mode
Theme
For reference, here's the result of
open fibonacci.nu | nu-highlight | to html --html-color --partial