0

Currently if I use nano to edit a file with a .py extension nano will recognize it as a Python file and will color the syntax, but for Python 2. Is there anyway for nano to color syntax to Python3 instead as that's what I know how to use?

  • How do you expect the color to be different? All nano does is go by the file ending and apply the rules it has for that file ending. – Steve Robillard Nov 16 at 22:41
  • I suppose if you know what you are doing you could edit /usr/share/nano/python.nanorc – joan Nov 16 at 23:08
  • I wrote this for the blog which should get you sorted out raspberrypise.tumblr.com/post/146308635329/… – Steve Robillard Nov 16 at 23:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.