标签:template other ogr htm current -o ace popup ++
emacs的外观包括文本区的外观,辅助区的外观,状态行的外观,光标的外观等,
每个外观都有名字,并且都有下面属性:
Emacs can display text in several different styles, called?faces. Each face can specify various?face attributes, such as the font, height, weight, slant, foreground and background color, and underlining or overlining. Most major modes assign faces to the text automatically, via Font Lock mode.
注意:face里并不设定所有属性,没有被设定的属性就使用叫default的face的属性。比如face:popup-face,它只设定了前景色和背景色属性,所有它的其他属性的值就是face:default的相应属性的值。
这个概念非常重要,所以当改变了face:default里属性的值的话,就会影响所有face
Font Lock mode is a minor mode, always local to a particular buffer, which assigns faces to (or?fontifies) the text in the buffer. Each buffer‘s major mode tells Font Lock mode which text to fontify; for instance, programming language modes fontify syntactically relevant constructs like comments, strings, and function names.
Font Lock mode is enabled by default in major modes that support it. To toggle it in the current buffer, type?M-x font-lock-mode.
font-lock-mode :作用在当前缓冲区
global-font-lock-mode:作用在当前缓冲区
Font Lock mode uses several specifically named faces to do its job, including?font-lock-string-face
,?font-lock-comment-face
, and others. The easiest way to find them all is to use?
从下图可以看出来:
1,关键字(font lock keyward face)后面是紫色,所以右面代码里关键字(template,protected,try等)部分全是紫色
2,函数名(font lock function name face)后面是蓝色,所以右面代码里函数名(insert,get_node等)部分全是蓝色
如何在上面的画面操作请参考Changing a Variable
标签:template other ogr htm current -o ace popup ++
原文地址:https://www.cnblogs.com/xiaoshiwang/p/11876931.html