Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 58477 - enhancement for Nano for better highlighting the Syntax in Config files
Summary: enhancement for Nano for better highlighting the Syntax in Config files
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High enhancement
Assignee: SpanKY
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-26 16:31 UTC by Thilo Six
Modified: 2006-04-30 02:15 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
nanorc optimised for white background (nanorc_white.bg,18.52 KB, text/plain)
2004-07-26 16:37 UTC, Thilo Six
Details
nanorc optimised for black background (nanorc_black.bg,18.51 KB, text/plain)
2004-07-26 16:37 UTC, Thilo Six
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thilo Six 2004-07-26 16:31:28 UTC
I
Comment 1 Thilo Six 2004-07-26 16:31:28 UTC
I´ve created my own nanorc with sytax highlighting in config files
( e.g. make.con, xorg.conf, sudoers ......)
as I found the default doesn´t do that.

So I add my nanorc to this Bug and I think it would be great to have something
like this in the default nanorc which comes with Gentoo.

Notice:
- there are 2 nanorc added, one is optimised for white and one for black 
  background.
- In there, there is a little sektion called "D U M M Y Ruleset".
  It contains just a little exsamles for creating own Rulesets, this maybe fits
  in man nanorc ! ??

Last but not least I´ve a little suggestion/question.
In my opinion the feature :

## Don't wrap text at all
set nowrap

is a must have one.
Per default nano-editor.org disables _all_ features. Is it possible / does it 
make sense to _enable_ this one in Gentoo per default ?

OK that´s it. bye

Reproducible: Always
Steps to Reproduce:
1.cp nanorc_white.bg /etc/nanorc
2.nano foo.conf
3.have fun  ;-)

Actual Results:  
It opens nano with a great Syntaxhighlighting

Expected Results:  
ui ahmm .... don´t know
Comment 2 Thilo Six 2004-07-26 16:37:11 UTC
Created attachment 36233 [details]
nanorc optimised for white background
Comment 3 Thilo Six 2004-07-26 16:37:54 UTC
Created attachment 36234 [details]
nanorc optimised for black background
Comment 4 SpanKY gentoo-dev 2004-07-28 21:49:50 UTC
i'm not going to change the default for line wrapping ... you can do that yourself via nanorc option, running nano with -w, or hitting meta+l while in nano ... a lot of people like it ;)

i'll take a look at the other things in a bit
Comment 5 Thilo Six 2004-09-07 13:43:29 UTC
OK full ACK

This is the difference between personal taste and responsibility for a whole distribution.
Comment 6 MAL 2006-01-20 07:16:49 UTC
I would like to request removing out-of-the-box syntax colouring from nano completely.  Unless you have the right colour background on your terminals so you can see the colours that the author chose, it's just plain annoying.

My preference would be to add a colour USE flag to nano (you can add other file types with default highlighting then), but chances are that's not going to happen, so can the syntax highlighting at least be commented out in /etc/nanorc by default.
Users can always add them to ~/.nanorc if they don't want them overridden by config updates.
Comment 7 SpanKY gentoo-dev 2006-04-30 02:15:59 UTC
the default colors are disabled by default (except for gentoo highlighting)

ive disabled those now again