LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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, 05: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 05:31 AM.
 
Old 10-07-2012, 02:00 AM   #2
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
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



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 01:19 PM
Make "ls" command show colors without "--color=always" switch SharpyWarpy Linux - General 4 07-16-2007 11:00 PM
[SOLVED] Need to recover or change root password. And must run "nano". ShellyCat Linux - Newbie 10 07-14-2007 03:01 PM
nano "anyFile" makes keyboad working strange bokini Linux - General 0 03-05-2006 08:47 AM
"X-MS" cant open because "x-Multimedia System" cant access files at "smb&qu ponchy5 Linux - Networking 0 03-29-2004 11:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:58 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
Open Source Consulting | Domain Registration