文件操作 - javascript.nanorc
返回文件管理
返回主菜单
删除本文件
文件: /usr/share/nano/javascript.nanorc
编辑文件内容
## Syntax highlighting for Javascript. syntax javascript "\.js$" comment "//" # Declarational stuff. color green "\<(async|class|const|extends|function|let|this|typeof|var|void)\>" # Flow control and special keywords. color brightyellow "\<(do|while|if|else|switch|case|default|for|each|in|of|with)\>" color brightyellow "\<(await|export|import|throw|try|catch|finally|new|delete)\>" # "Exit" points. color magenta "\<(break|continue|return|yield)\>" # Octal/decimal and hexadecimal numbers. color cyan "\<([0-9]+|0x[[:xdigit:]]+)\>" # Special values. color cyan "\<(true|false|null|undefined)\>" # Strings. color brightmagenta ""([^"\]|\\.)*"|'([^'\]|\\.)*'|`([^`\]|\\.)*`" # Comments. color brightblue "(^|[[:blank:]])//.*" color brightblue start="/\*" end="\*/" # Trailing whitespace. color ,green "[[:space:]]+$"
修改文件时间
将文件时间修改为当前时间的前一年
删除文件