diff --git a/etc-hosts.nanorc b/etc-hosts.nanorc index eb8a51e..aee54fd 100644 --- a/etc-hosts.nanorc +++ b/etc-hosts.nanorc @@ -1,5 +1,5 @@ ## Make /etc/hosts nicer to read, see `man hosts 5` to see the format -syntax "/etc/hosts" "hosts" +syntax "/etc/hosts" "^/etc/hosts$" # IPv4 color yellow "^[0-9\.]+\s" diff --git a/php.nanorc b/php.nanorc index 693695f..d3ba959 100644 --- a/php.nanorc +++ b/php.nanorc @@ -1,5 +1,6 @@ ## PHP Syntax Highlighting syntax "PHP" "\.php[2345s~]?$|\.module$" +header "^#!.*php" magic "PHP script" comment "//" color white start="<\?(php|=)?" end="\?>"