unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: deccard <Anima_Draconis@hotmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: C and C++ highlighting is not working properly (font-lock)
Date: Sun, 01 Jul 2007 14:51:37 -0000	[thread overview]
Message-ID: <1183301497.894258.50370@k29g2000hsd.googlegroups.com> (raw)
In-Reply-To: <1183192449.781552.293700@k79g2000hse.googlegroups.com>

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="us-ascii", Size: 1270 bytes --]

On 30 kesä, 11:34, Enselic <ense...@gmail.com> wrote:
> On 30 Juni, 03:45, deccard <Anima_Draco...@hotmail.com> wrote:
>
> First of all, font-lock probably assumes proper syntax and sane
> indentation, so fix that first.

The problem occurs also with proper syntax and sane indentation. I had
to use improper syntax and unconventional indentation to point out the
problem better.
>
> Second of all, it might look more wrong than it is if you have the
> same color for two different fonts.
>

No, as you can see from the screen shot I use different colors for
font-lock-type-face font-lock-type-face, but for some reason function
highlighting does not appear correctly everywhere.

> When I setup these colors and want full control, I bring up M-x
> customize-group font-lock-faces RET and M-x list-colors-display RET.
> Then I change a font, save the settings, switch to a C++ buffer, look
> at the results, go back to the customization group, change a color,
> save changes, look at result in C++ buffer, etc.
>
> This way I find that one gets much control over syntax.

Well I don't want to customize my syntax highlighting right now, but I
want the highlighting to work properly.

>
> Hope this helps in some way,
> - Martin Nordholts

  reply	other threads:[~2007-07-01 14:51 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-30  1:45 C and C++ highlighting is not working properly (font-lock) deccard
2007-06-30  8:34 ` Enselic
2007-07-01 14:51   ` deccard [this message]
2007-06-30 10:13 ` Alan Mackenzie
     [not found] ` <mailman.2833.1183193218.32220.help-gnu-emacs@gnu.org>
2007-07-01 15:07   ` deccard
2007-07-01 17:50     ` Alan Mackenzie

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1183301497.894258.50370@k29g2000hsd.googlegroups.com \
    --to=anima_draconis@hotmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).