Nano syntax highlighting

Gentoo installs nano with a decent set of syntax highlighting files. This page contains some that are improvements on the default files, or not included in the pre-existing set.

PHP
PHP syntax highlighting, similar to vim default color scheme

make.conf
Also add this line to /etc/nanorc

include "/usr/share/nano/make.conf.nanorc"

or for 1 user to file ~/.nanorc

ebuild
syntax "ebuild" "\.e(build|class)$" color brightgreen "^src_(unpack|compile|install)" "^pkg_(config|nofetch|setup|(pre|post)(inst|rm))" color green "\<(case|do|done|elif|else|esac|exit|fi|for|function|if|in|local|read|return|select|shift|then| time|until|while)\>" color green "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)" color green "-(e|d|f|r|g|u|w|x|L)\>" color green "-(eq|ne|gt|lt|ge|le|s|n|z)\>" color brightred "\$\{?[a-zA-Z_0-9]+\}?" color red "\<(ARCH|HOMEPAGE|DESCRIPTION|IUSE|SRC_URI|LICENSE|SLOT|KEYWORDS|FILESDIR|WORKDIR|(P|R)?DEPEND| PROVIDE|DISTDIR|RESTRICT)\>" color red "\<(S|D|T|PV|PF|P|PN|A)\>" "\" color magenta "\ [a-z0-9X ]*" "inherit.*" color brightblue "e(begin|end|conf|install|make|warn|infon?|error|patch)" color brightblue "\" "\" "\" "\" "\<(has|best)_version\>" "\" color brightblue "\<(do|new)(ins|s?bin|doc|lib(|\.so|\.a)|man|info|exe)\>" color brightblue "\" "\" color brightblue "prepall(|docs|info|man|strip)" "prep(info|lib|lib\.so|man|strip)" color brightblue "\<(|doc|ins|exe)into\>" "\" "\<(exe|ins)opts\>" color blue "\" "\<(cat|cd|chmod|chown|cp|echo|env|export|grep|let|ln|mkdir|mv|rm|sed|set|tar|touch|unset)\>" color yellow "#.*$" color brightyellow ""(\\.|[^\"])*"" "'(\\.|[^'])*'"
 * 1) Example for ebuilds/eclasses
 * 1) Standatr functions.
 * 1) bash syntax
 * 1) vars
 * 1) Command of portages
 * 1) Main commands, that use in ebuilds
 * 1) Comments
 * 1) Strings