Xander Posted June 5, 2011 Report Posted June 5, 2011 1.in primul rand:daca exista /etc/nanorc si nu contine dejainclude "/usr/share/nano/php.nanorc"treceti voi la sfarsit , daca nu exista creati ~/.nanorc si treceti acolo include-ul2. mkdir -p /usr/share/nano (in caz ca nu exista folderul)3. copiati de mai jos in /usr/share/nano/php.nanorc si salvatisyntax "php" "\.php[2345s~]?$"## typescolor green "\<(var|float|global|double|bool|char|int|enum|const)\>"## integerscolor green "[^a-zA-Z]+"## stringscolor brightyellow "<[^= ]*>" ""(\.|[^"])*"" "'(\.|[^'])*'"## escaped " in commendscolor brightyellow "\\"(\.|[^"])*\\"" "\\'(\.|[^'])*\\'"## inline php echocolor magenta start="<\?=" end="\?>"## php markingscolor brightgreen "(<\?(php)?|\?>)"## functionscolor brightblack "\<[[a-zA-Z0-9_]+\(" "\<[[a-zA-Z_]*\(\)"## variablescolor cyan "\$[a-zA-Z_]+"## structurecolor brightyellow "\<(class|new|private|public|function|for|foreach|if|while|do|else|elseif|case|default|switch)\>"## control flowcolor magenta "\<(goto|continue|break|return)\>"## commentscolor brightblue "//.*"color brightblue start="/\*" end="\*/"#color blue start="<" end=">"#color red "&[^;[[:space:]]]*;"## acolade fratecolor blue,white "\{" "\}" Quote