LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-02-2012, 06:29 AM   #1
SilversleevesX
Member
 
Registered: May 2009
Posts: 181
Blog Entries: 9

Rep: Reputation: 15
nano -- changing colors for files without a "syntax"


In other words, changing nano's "default" colors.

The man page for nanorc notes that the "none" and "default" syntaxes are reserved. Is it still possible to configure nano to start with colors which are the reverse of what one uses in their terminal session outside of nano, for instance?

If it isn't, it should be in my opinion.

So far, the nearest thing to an answer I found was here.

And I hope folks reading this will refrain from suggesting I use one of the "mode-based" editors instead of nano.

I await all considered replies.

BZT

Last edited by SilversleevesX; 10-02-2012 at 06:31 AM.
 
Old 10-07-2012, 03:00 AM   #2
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware
Posts: 6,403
Blog Entries: 6

Rep: Reputation: Disabled
Hi:

I'm not sure actually if you can change the 'default' colors.

I do understand what you mean as I too have encountered the same when I edit my sources.list.
I have multipule colors and they don't seem to have any kind of order so I can appreciate what you want.

I read through command line options but I did not see a command to configure the colors.

Maybe my thinking is wrong but there should be a way to change default colors within Nano-

Here's a page (How To Tips & Tricks: Nano) that has terminal output in examples of the color red:
#Color Syntax Highlighting
syntax "c-file" "\.(c|h)$"
color red "\<[A-Z_]{2,}\>"
http://www.linuxhowtos.org/System/config_nano.htm
http://ubuntuforums.org/showthread.php?t=62250

Here's the Manual to Nano....there might be a way in the manual to do this-
http://www.nano-editor.org/dist/v2.1/nano.html

Hope this helps...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
"Segmentation Fault" in gtkpod-git, should I try Amarok? [iPod Nano 5G] atari/ Linux - Software 4 04-19-2010 02:19 PM
Make "ls" command show colors without "--color=always" switch SharpyWarpy Linux - General 4 07-17-2007 12:00 AM
[SOLVED] Need to recover or change root password. And must run "nano". ShellyCat Linux - Newbie 10 07-14-2007 04:01 PM
nano "anyFile" makes keyboad working strange bokini Linux - General 0 03-05-2006 09:47 AM
"X-MS" cant open because "x-Multimedia System" cant access files at "smb&qu ponchy5 Linux - Networking 0 03-30-2004 12:18 AM


All times are GMT -5. The time now is 06:29 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration