changes preferences with a macro.

Erez Amit erez.amit at gmail.com
Wed Jul 8 07:35:05 CEST 2009


Hi Martin,
I think you'll find the solution you're looking for here:
http://nedit.hackvalue.nl/niki/index.php/ChangeFontsQuickly

<http://nedit.hackvalue.nl/niki/index.php/ChangeFontsQuickly>Here's an
extract from there: "... so you can achieve to have language mode specific
text fonts (which NEdit doesn't support directly, that is, by a language
mode preferences setting)."

I think you'll also find the answer for your second question there. When you
set a font in Nedit - you actually need to set 4 fonts: normal, bold, italic
and bold-italic. What you describe sounds as if you only set the normal font
in your nedit.rc file.

Good luck,
Erez



On Wed, Jul 8, 2009 at 7:57 AM, Martin Hill <mda.hill at gmail.com> wrote:

> Hi,
>
> I'd like to change some visual behaviours in nedit based off language.
>
> Firstly, is it possible to change bg colour, fonts, etc on a macro, or
> indeed on language.  I swap between different languages and would like a
> different font size for C++ as opposed to XML.
>
> Secondly, if I start nedit from the cmd line with (say)
>
> nedit -font '-*-helvetica-medium-r-normal-*-*-80-*-*-*-*-*-*'
>
> The main font is the one entered, but the bold, italics etc, that are used
> with the syntax highlighting revert back to the nedit.rc defaults - is
> there
> a way around this?
>
> Many thanks for any help
> --martin
> --
> NEdit Discuss mailing list - Discuss at nedit.org
> http://www.nedit.org/mailman/listinfo/discuss
>


More information about the Discuss mailing list