Redian新闻
>
XEmacs C++-font-lock custumizing question
avatar
XEmacs C++-font-lock custumizing question# Unix - 噫吁兮,危乎高哉
O*D
1
Hi all,
I have a question about XEmacs lisp extension.
In C++-mode, font lock recognizes int, float etc as types and highlight
them using font-lock-type-face. Yet it does not font lock on extended types
for instance time_t and iterator.
Emacs fontifies these names by default and one can append whatever he wants
to the list c++-font-lock-extra-types. And if your company decided all the
classes in its application code would conform to a name convention class
TC***,
you can add a regexp to the list
avatar
t*a
2
Hi, I have a quite close question.
Suppose the int is by default shown in red color,
can I change it to green, for example? how?
Thanks a lot.

This
XEmacs.

【在 O*D 的大作中提到】
: Hi all,
: I have a question about XEmacs lisp extension.
: In C++-mode, font lock recognizes int, float etc as types and highlight
: them using font-lock-type-face. Yet it does not font lock on extended types
: for instance time_t and iterator.
: Emacs fontifies these names by default and one can append whatever he wants
: to the list c++-font-lock-extra-types. And if your company decided all the
: classes in its application code would conform to a name convention class
: TC***,
: you can add a regexp to the list

avatar
O*D
3
you can customize font lock faces. change the highlight color, font of type
names is trivial in Xemacs.
If you want to do more than that, say create your own faces, I do not know a
easy way which led to my first question.
Anyhow, I am the ROOT of my machine, so I did the nasty thing of editing
fontlock.el in Xemacs lisp package. By that I solve some of my problem, but
still kinda hard to customize in init.el or .emacs.

types
wants

【在 t****a 的大作中提到】
: Hi, I have a quite close question.
: Suppose the int is by default shown in red color,
: can I change it to green, for example? how?
: Thanks a lot.
:
: This
: XEmacs.

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。