Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in some file on some line: Command "linter/comment" not understood #390

Open
b1ek opened this issue Apr 4, 2022 · 5 comments
Open

Comments

@b1ek
Copy link

b1ek commented Apr 4, 2022

image
Am i doing something wrong?

@b1ek
Copy link
Author

b1ek commented Apr 4, 2022

The coloring works as it supposed to

@robertrade
Copy link

You can comment out/remove these lines in these specific files.

@davidhcefx
Copy link
Contributor

Probably due to using an old version of Nano

@Antiokh
Copy link

Antiokh commented Dec 5, 2024

I have the same issue with my hoster, can it be solved somehow universally without editing all the files?

Error in /var/www/205232.antiokh/data/.nano/cmake.nanorc on line 4: Command "comment" not understood

Error in /var/www/205232.antiokh/data/.nano/etc-hosts.nanorc on line 11: Color "normal" not understood.
Valid colors are "green", "red", "blue",
"white", "yellow", "cyan", "magenta" and
"black", with the optional prefix "bright"
for foreground colors.

Error in /var/www/205232.antiokh/data/.nano/fortran.nanorc on line 4: Command "comment" not understood

Error in /var/www/205232.antiokh/data/.nano/gentoo.nanorc on line 4: Command "comment" not understood

Error in /var/www/205232.antiokh/data/.nano/go.nanorc on line 2: Command "comment" not understood

Error in /var/www/205232.antiokh/data/.nano/groff.nanorc on line 4: Command "comment" not understood

Error in /var/www/205232.antiokh/data/.nano/haskell.nanorc on line 2: Command "comment" not understood

Error in /var/www/205232.antiokh/data/.nano/html.nanorc on line 5: Command "comment" not understood

Error in /var/www/205232.antiokh/data/.nano/html.j2.nanorc on line 5: Command "comment" not understood

Error in /var/www/205232.antiokh/data/.nano/java.nanorc on line 5: Command "comment" not understood

Error in /var/www/205232.antiokh/data/.nano/javascript.nanorc on line 2: Command "comment" not understood

Error in /var/www/205232.antiokh/data/.nano/js.nanorc on line 17: Command "comment" not understood

Error in /var/www/205232.antiokh/data/.nano/json.nanorc on line 4: Command "comment" not understood

Error in /var/www/205232.antiokh/data/.nano/lua.nanorc on line 17: Command "comment" not understood

Error in /var/www/205232.antiokh/data/.nano/lua.nanorc on line 19: Command "linter" not understood

Error in /var/www/205232.antiokh/data/.nano/makefile.nanorc on line 4: Command "comment" not understood

Error in /var/www/205232.antiokh/data/.nano/man.nanorc on line 5: Command "comment" not understood

Error in /var/www/205232.antiokh/data/.nano/nanorc.nanorc on line 4: Command "comment" not understood

Error in /var/www/205232.antiokh/data/.nano/nanorc.nanorc on line 17: Color "normal" not understood.
Valid colors are "green", "red", "blue",
"white", "yellow", "cyan", "magenta" and
"black", with the optional prefix "bright"
for foreground colors.

Error in /var/www/205232.antiokh/data/.nano/nanorc.nanorc on line 26: Color "normal" not understood.
Valid colors are "green", "red", "blue",
"white", "yellow", "cyan", "magenta" and
"black", with the optional prefix "bright"
for foreground colors.

Error in /var/www/205232.antiokh/data/.nano/nanorc.nanorc on line 35: Color "normal" not understood.
Valid colors are "green", "red", "blue",
"white", "yellow", "cyan", "magenta" and
"black", with the optional prefix "bright"
for foreground colors.

Error in /var/www/205232.antiokh/data/.nano/ocaml.nanorc on line 5: Command "comment" not understood

Error in /var/www/205232.antiokh/data/.nano/patch.nanorc on line 6: Command "comment" not understood

Error in /var/www/205232.antiokh/data/.nano/perl.nanorc on line 6: Command "comment" not understood

Error in /var/www/205232.antiokh/data/.nano/php.nanorc on line 4: Command "comment" not understood

Error in /var/www/205232.antiokh/data/.nano/po.nanorc on line 2: Command "comment" not understood

Error in /var/www/205232.antiokh/data/.nano/pov.nanorc on line 4: Command "comment" not understood

Error in /var/www/205232.antiokh/data/.nano/python.nanorc on line 6: Command "comment" not understood

Error in /var/www/205232.antiokh/data/.nano/python.nanorc on line 8: Command "linter" not understood

Error in /var/www/205232.antiokh/data/.nano/ruby.nanorc on line 6: Command "linter" not understood

Error in /var/www/205232.antiokh/data/.nano/ruby.nanorc on line 7: Command "comment" not understood

Error in /var/www/205232.antiokh/data/.nano/rust.nanorc on line 8: Command "comment" not understood

Error in /var/www/205232.antiokh/data/.nano/sh.nanorc on line 6: Command "comment" not understood

Error in /var/www/205232.antiokh/data/.nano/sh.nanorc on line 8: Command "linter" not understood

Error in /var/www/205232.antiokh/data/.nano/tcl.nanorc on line 5: Command "comment" not understood

Error in /var/www/205232.antiokh/data/.nano/tex.nanorc on line 5: Command "comment" not understood

Error in /var/www/205232.antiokh/data/.nano/tex.nanorc on line 7: Command "linter" not understood

Error in /var/www/205232.antiokh/data/.nano/xml.nanorc on line 7: Command "comment" not understood

Press Enter to continue starting nano.

@davidhcefx
Copy link
Contributor

davidhcefx commented Dec 5, 2024

@Antiokh The easiest way is to switch to an older nanorc syntax file. Take a look here, where the readme has instructions on how to switch to the appropriate branch:
https://github.com/galenguyer/nano-syntax-highlighting

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants