Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

floriflowers

macrumors newbie
Original poster
Hi everyone!

Can someone help me turn on syntax highlighting in nano 3.1?

I installed it with homebrew and tried nano include /usr/share/nano/java.nanorc, but the terminal does not recognize this.

Thank you!!
 
in your nanorc file, don't forget to add line:
include /usr/local/share/nano/*
In my case, this is my nanorc file
Screen Shot 2018-10-29 at 1.49.44 PM.png
and how nano behaves with xml highlighting.

Screen Shot 2018-10-29 at 1.49.56 PM.png
 

Attachments

  • Screen Shot 2018-10-29 at 1.47.24 PM.png
    Screen Shot 2018-10-29 at 1.47.24 PM.png
    655 KB · Views: 45
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.