I didn't know it, but nano does syntax coloring with regular expressions. That's wonderful, regular expressions excused.
This is in progress; I'll be updating it when I get it fully complete.
syntax "python" "\.py$"
color red "[\[\](){}:]"
color brightblue "\<__dict__\>" ...
color green "#.*"
color cyan "([\"']).*?[^\]\1"
# this is kludge to avoid the line for the example C syntax marked "this is wasteful"
color cyan "\"\"" "''"
color cyan start="\"\"\"" end="\"\"\""
Comments
comment
ok.. so how do I actually get nano to do this?