2009-11-05 5 views

답변

5

'highlight-regexp'를 확인하십시오. 얼굴을 바꿀 단어를 입력하십시오 (정규 표현식이 될 수 있음).

M-X- 하이라이트 정규식

highlight-regexp is an alias for `hi-lock-face-buffer' in 
`hi-lock.el'. 

It is bound to M-s h r. 

(highlight-regexp regexp &optional face) 

Set face of each match of regexp to face. 

Interactively, prompt for regexp then face. Buffer-local history 
list maintained for regexps, global history maintained for faces. 
Use M-p to retrieve previous history items, 
and M-n to retrieve default values. 
1

예,

원하는 것은 font-lock-mode입니다.

는 여기를 참조하십시오 : http://www.gnu.org/software/emacs/manual/html_node/emacs/Font-Lock.html

은 특히 당신이 font-lock-mode 켜고 다음 font-lock-add-keywords를 통해 키워드 목록을 지정할 수 있습니다.

+0

응? 텍스트 모드에서? – Bahbar

+0

확실하지 않은 이유는 텍스트 모드에 대한 후크를 추가하기 만하면됩니다. 나는 내 로컬 컴퓨터에서 해냈다. 가능하다고 생각하지 않니? – chollida

관련 문제