From: Enselic <enselic@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: C and C++ highlighting is not working properly (font-lock)
Date: Sat, 30 Jun 2007 01:34:09 -0700 [thread overview]
Message-ID: <1183192449.781552.293700@k79g2000hse.googlegroups.com> (raw)
In-Reply-To: <1183167950.112690.110970@k29g2000hsd.googlegroups.com>
On 30 Juni, 03:45, deccard <Anima_Draco...@hotmail.com> wrote:
> I'm using font-lock, but I'm getting quite weird behavior out of it. I
> get right colors only for the first word. Even using tab messes it up!
> What could be going on? I have not added anything to my .emacs.
>
> Here is a screen shot of my pseudo c++ program:http://www.helsinki.fi/~ipohjala/Problem.png
First of all, font-lock probably assumes proper syntax and sane
indentation, so fix that first.
Second of all, it might look more wrong than it is if you have the
same color for two different fonts.
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.
Hope this helps in some way,
- Martin Nordholts
next prev parent reply other threads:[~2007-06-30 8:34 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 [this message]
2007-07-01 14:51 ` deccard
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1183192449.781552.293700@k79g2000hse.googlegroups.com \
--to=enselic@gmail.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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.