On Thu, 26 Nov 2015 07:04:10 -0800 (PST), Len Ovens wrote: >Joe also colour codes things based on the programming language in the >file which is nice. It does have some trouble dealing with white space >the right way... or maybe I just need to configure it right.
[rocketmouse@archlinux ~]$ cat -n ~/.nanorc | tail -n12 6 syntax "unidark" "(\.([jrs]html?|sgml?|xml|ajs|rdf|xslt?|log|conf|config|cfg|cnf|rc|lst|list|defs|ini|desktop|mime|types|preset|cache|seat|service|htaccess)$|(^|/)(\w*PKGBUILD|.jwmrc|.nanorc|crontab|mirrorlist|group|hosts|passwd|rpc|netconfig|shadow|fstab|inittab|inputrc|protocols|sudoers|sudoers.tmp)$|conf.d/|.config/)" 7 header "^#!.*/(da|ba|z|k|pdk)?sh[-0-9_]*" 8 icolor brightgreen "^[0-9A-Z_]+\(\)" 9 color brightgreen "\<(case|do|done|elif|else|esac|exit|fi|for|function|if|in|local|read|return|select|shift|then|time|until|while)\>" 10 color brightgreen "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)" 11 color brightgreen "-[Ldefgruwx]\>" 12 color brightgreen "-(eq|ne|gt|lt|ge|le|s|n|z)\>" 13 color brightmagenta "\<(cat|cd|chmod|chown|cp|echo|env|export|grep|install|let|ln|make|mkdir|mv|rm|sed|set|tar|touch|umask|unset)\>" 14 icolor brightred "\$\{?[0-9A-Z_!@#$*?-]+\}?" 15 color brightcyan "(^|[[:space:]])#.*$" 16 color brightyellow ""(\\.|[^"])*"" "'(\\.|[^'])*'" 17 color ,blue "[[:space:]]+$" IIRC nano allows colour profiles, but I just use the above profile and assumed I need more flexible syntax highlighting and copy, paste etc. I use a GUI editor. There's no good reason for me to do this with a command line editor. Often I write Linux shell scripts on my iPad, with no synthax highlighting at all and no way to test the script, but still with the comfort of a GUI. -- http://www.grundgesetz-gratis.de/ -- ubuntu-studio-devel mailing list ubuntu-studio-devel@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-studio-devel