{"id":272,"date":"2012-08-10T17:22:00","date_gmt":"2012-08-10T06:22:00","guid":{"rendered":"http:\/\/fallowbrow.rumblehead.com\/?p=272"},"modified":"2012-08-10T17:22:00","modified_gmt":"2012-08-10T06:22:00","slug":"whys-my-nano-editor-in-black-and-white-in-fedora","status":"publish","type":"post","link":"https:\/\/rumblehead.com\/fallowbrow\/?p=272","title":{"rendered":"Why&#8217;s my &#8216;nano&#8217; editor in black and white in Fedora?"},"content":{"rendered":"<p>If you do any source code tweaking in nano you will no that colourising (or &#8216;colorizing&#8217; for our American cousins) the code makes life simpler. For some reason the default Fedora config for nano, since approxiamtely the dawn of time, is to disable automatic code highlighting.<\/p>\n<p>Fortunately it is easy to fix this by modifying the \/etc\/nanorc file. Just edit the file using nano:<br \/>\n<code>su -c 'nano \/etc\/nanorc'<\/code><br \/>\nskip down to the bottom of the file and you will see a whole series options like this:<\/p>\n<pre>\u00a0 \u00a0 ## Perl\n\u00a0 \u00a0 # include \"\/usr\/share\/nano\/perl.nanorc\"\n\n\u00a0\u00a0\u00a0 ## Python\n\u00a0\u00a0\u00a0 # include \"\/usr\/share\/nano\/python.nanorc\"\n\n\u00a0\u00a0\u00a0 ## Ruby\n\u00a0\u00a0\u00a0 # include \"\/usr\/share\/nano\/ruby.nanorc\"\n\n\u00a0\u00a0\u00a0 ## Java\n\u00a0\u00a0\u00a0 # include \"\/usr\/share\/nano\/java.nanorc\"<\/pre>\n<p>Just remove the octothorpe (a.k.a. hash) from the from the beginning of the line for all types of files you want colourised. e.g. to enable colourising Perl code, you would change the Perl line to this:<\/p>\n<pre>    ## Perl\n    include \"\/usr\/share\/nano\/perl.nanorc\"<\/pre>\n<p>Next time you open a Perl script it will be colourised.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you do any source code tweaking in nano you will no that colourising (or &#8216;colorizing&#8217; for our American cousins) the code makes life simpler. For some reason the default Fedora config for nano, since approxiamtely the dawn of time, is to disable automatic code highlighting. Fortunately it is easy to fix this by modifying [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-272","post","type-post","status-publish","format-standard","hentry","category-technomolology"],"_links":{"self":[{"href":"https:\/\/rumblehead.com\/fallowbrow\/index.php?rest_route=\/wp\/v2\/posts\/272","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rumblehead.com\/fallowbrow\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rumblehead.com\/fallowbrow\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rumblehead.com\/fallowbrow\/index.php?rest_route=\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/rumblehead.com\/fallowbrow\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=272"}],"version-history":[{"count":0,"href":"https:\/\/rumblehead.com\/fallowbrow\/index.php?rest_route=\/wp\/v2\/posts\/272\/revisions"}],"wp:attachment":[{"href":"https:\/\/rumblehead.com\/fallowbrow\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=272"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rumblehead.com\/fallowbrow\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=272"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rumblehead.com\/fallowbrow\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=272"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}