scopatz / nanorc

Improved Nano Syntax Highlighting Files
Other
3k stars 549 forks source link

crontab seems be no highlight #245

Open mhf-ir opened 4 years ago

mhf-ir commented 4 years ago

Crontab not highlighted.

root@srv:~ $ echo $EDITOR 
nano
root@srv:~ $ nano -V
 GNU nano, version 3.2
 (C) 1999-2011, 2013-2018 Free Software Foundation, Inc.
 (C) 2014-2018 the contributors to nano
 Email: nano@nano-editor.org    Web: https://nano-editor.org/
 Compiled options: --disable-libmagic --disable-wrapping-as-root --enable-utf8
root@srv:~ $ crontab -e

Screenshot from 2019-09-13 15-18-43

SuperSandro2000 commented 4 years ago

You probably installed nanorc as your user and not root cause it is for me.

Also that nano is quite old.

mhf-ir commented 4 years ago

Other syntax like nano /etc/hosts work well, same user root