Discussion:
nedit: colors at startup
wayne.lydecker-o70QjBUuf8rQT0dZR+
2008-07-02 16:44:25 UTC
Permalink
I'd like to be able to set different text colors when launching nedit
from the command line. The -background (-bg) and -foreground (-fg)
change the window border. How can I depict different color text other
than what is set as default? I want different colors when I open files
with "-read" for read-only.

Thanks,

-- Wayne.
--
NEdit Discuss mailing list - Discuss-***@public.gmane.org
http://www.nedit.org/mailman/listinfo/discuss
Eddy De Greef
2008-07-02 17:35:30 UTC
Permalink
Here's what I do:

nedit -xrm "nedit.textBgColor:<some color>"

You'll need version 5.4 or higher, and you can set only one background
color per nedit (server) instance in this way.

Eddy
Post by wayne.lydecker-o70QjBUuf8rQT0dZR+
I'd like to be able to set different text colors when launching nedit
from the command line. The -background (-bg) and -foreground (-fg)
change the window border. How can I depict different color text other
than what is set as default? I want different colors when I open files
with "-read" for read-only.
Thanks,
-- Wayne.
--
NEdit Discuss mailing list - Discuss-***@public.gmane.org
http://www.nedit.org/mailman/listinfo/discuss
wayne.lydecker-o70QjBUuf8rQT0dZR+
2008-07-02 17:57:30 UTC
Permalink
Thanks Eddy, that works good. Can it work for rgb colors as well?

-- Wayne.
Post by Eddy De Greef
nedit -xrm "nedit.textBgColor:<some color>"
You'll need version 5.4 or higher, and you can set only one background
color per nedit (server) instance in this way.
Eddy
Post by wayne.lydecker-o70QjBUuf8rQT0dZR+
I'd like to be able to set different text colors when launching nedit
from the command line. The -background (-bg) and -foreground (-fg)
change the window border. How can I depict different color text other
than what is set as default? I want different colors when I open files
with "-read" for read-only.
Thanks,
-- Wayne.
--
NEdit Discuss mailing list - Discuss-***@public.gmane.org
http://www.nedit.org/mailman/listinfo/discuss
Eddy De Greef
2008-07-03 07:29:14 UTC
Permalink
Yes, that works too, if you use hex color values.

Eg: nedit -xrm "nedit.textBgColor:#FF0000"

Eddy
Post by wayne.lydecker-o70QjBUuf8rQT0dZR+
Thanks Eddy, that works good. Can it work for rgb colors as well?
-- Wayne.
Post by Eddy De Greef
nedit -xrm "nedit.textBgColor:<some color>"
You'll need version 5.4 or higher, and you can set only one background
color per nedit (server) instance in this way.
Eddy
Post by wayne.lydecker-o70QjBUuf8rQT0dZR+
I'd like to be able to set different text colors when launching nedit
from the command line. The -background (-bg) and -foreground (-fg)
change the window border. How can I depict different color text other
than what is set as default? I want different colors when I open files
with "-read" for read-only.
Thanks,
-- Wayne.
--
NEdit Discuss mailing list - Discuss-***@public.gmane.org
http://www.nedit.org/mailman/listinfo/discuss
wayne.lydecker-o70QjBUuf8rQT0dZR+
2008-07-03 15:25:26 UTC
Permalink
The pound sign did the trick. Thanks.

-- Wayne.
Post by Eddy De Greef
Yes, that works too, if you use hex color values.
Eg: nedit -xrm "nedit.textBgColor:#FF0000"
Eddy
Post by wayne.lydecker-o70QjBUuf8rQT0dZR+
Thanks Eddy, that works good. Can it work for rgb colors as well?
-- Wayne.
Post by Eddy De Greef
nedit -xrm "nedit.textBgColor:<some color>"
You'll need version 5.4 or higher, and you can set only one
background color per nedit (server) instance in this way.
Eddy
Post by wayne.lydecker-o70QjBUuf8rQT0dZR+
I'd like to be able to set different text colors when launching nedit
from the command line. The -background (-bg) and -foreground (-fg)
change the window border. How can I depict different color text other
than what is set as default? I want different colors when I open files
with "-read" for read-only.
Thanks,
-- Wayne.
--
NEdit Discuss mailing list - Discuss-***@public.gmane.org
http://www.nedit.org/mailman/listinfo/discuss
Loading...