nano

Portrait de trax

Ma conf de nano
A mettre dans le fichier ~/.nanorc
.nanorc

unset autoindent
set const
set smooth
set nohelp
set nowrap
set tabsize 4
set multibuffer
 
syntax "default"
color cyan      "#.*"
color cyan start="/\*" end="\*/"
color green "//.*"
 
 
syntax "Java source" "\.java"
color brightblue start="/\*\*" end="\*/"
color brightred "\<(boolean|byte|char|double|float|int|long|new|short|this|transient|void|public)\>"
color red "\<(if|else|while|do)\>"
color brightblack "\<(break|case|catch|continue|default|finally|for|return|switch|throw|try)\>"
color cyan "\<(abstract|static|private|class|extends|final|implements|import|instanceof|interface|native|package)\>"
color brightcyan "\<(true|false|null)\>"
color brightcyan "public.*\{"
color brightcyan "private.*\{"
color blue start="/\*" end="\*/"
color brightblue "/\*"
color brightblue "\*/"
color green "//.*"
color cyan "\([^\)]*\(" "\([^)]*\)" "\)[^\(]*\)"
 
 
syntax "Code C" "\.c|\.php"
#color cyan	"\((.+?)\)"
 
color cyan "\([^)]*\)"
color cyan      "#.*"
color brightred     "\<(int|long|char|float|void)\>"
color red       "\<(unsigned|signed|struct|typedef)\>"
color red       "\<(if|else|for|while|do|switch)\>"
color brightblue    "\<(printf|scanf)\>"
color brightred     "\<(\;|PRINTF)\>"
color magenta       "\<(0|1|2|3|4|5|6|7|8|9)\>"
color brightblack       "(==|!=|%|&)"
color brightblack       "\<(return|case|break|default)\>"
color brightblue    start="/\*" end="\*/"
color brightgreen   "##"
color green		"INFO"
color green "//.*"
 
 
syntax "LaTeX"      "\.tex"
color cyan          "\\documentclass|\\begin|\\end"
color brightred     "\\usepackage"
color magenta       "\\author|\\title|\\date|\\maketitle"
color brightblack   "\\and"
color brightgreen   "%.*"
color brightblue    "\<(abstract|article|letter|book|report|document)\>"
color brightcyan			start="\\section|\\subsection|\\subsubsection" end="\}"
 
 
syntax "code Cpp" "\.cpp"
color blue start="/\*" end="\*/"
color cyan      "#.*"
color red     "\<(int|long|char|float|void)\>"
color red       "\<(unsigned|signed|struct|typedef)\>"
color brightred       "\<(if|else|for|while|do|switch)\>"
color green "//.*"