Howdy --

Syntax highlighting colors for perl uses the values of 
several font-faces... Namely:
        font-lock-comment-face
        font-lock-function-name-face
        font-lock-string-face
        font-lock-variable-name-face
... etc, etc...

For a full list of available faces, and their current settings, 
check with 
        M-x list-faces-display

To change a face's forground/background color, use:
        (set-face-foreground 'facename "color")
        (set-face-background 'facename "color")

"color" can be a predefined color, or "rgb:RR/GG/BB"

Now, I've never gone REALLY deep into this, but the theory in 
my head is that all the various cc-mode spinoffs use the same faces
for color. The real trick is getting your perl-mode-hook to change 
the font-faces to the colors you want while youre in perl-mode,
but not when you're in some other mode.

Or, if you don't care, just change all the font-faces in your .emacs,
and call it a day.

As far as perl-mode, you can start it up with a simple M-x perl-mode
when you open a perl file, or associate the .pl extension to perl-mode
and have it kick off automagically.
You should also have font-lock-mode turned on.

You know, I set all this stuff up like 2 years ago, and haven't changed
it since.
Once you get Emacs just the way you like it, all this stuff fades from
memory.

There's an NT Emacs mailing list, which I can't find, but font-lock
setup is
general Emacs, so this mailing list could provide:

     help-gnu-emacs ([EMAIL PROTECTED]) 
          gnUSENET newsgroup: gnu.emacs.help (and one-way into
comp.emacs)
          Send contribution to: [EMAIL PROTECTED]


Hope that helps,
Rob

Paul Rogers wrote:
> anyone know how to change the colors in ntemacs syntax highlighting?  the
> default colors aren't very legible.
> 
> i'm just trying it out right now (have been using homesite 4).
> 
> i've heard there is a mode specifically for use with perl (cperl?).
> 
> any help would be appreciated.
> 
> p ---
> 
> ---
> You are currently subscribed to perl-win32-users as: [EMAIL PROTECTED]
> To unsubscribe, forward this message to
>          [EMAIL PROTECTED]
> For non-automated Mailing List support, send email to
>          [EMAIL PROTECTED]

---
You are currently subscribed to perl-win32-users as: [archive@jab.org]
To unsubscribe, forward this message to
         [EMAIL PROTECTED]
For non-automated Mailing List support, send email to  
         [EMAIL PROTECTED]

Reply via email to