开发者

Mixing fonts in Emacs

Is is possible to get Emacs show different parts of file with different fonts? As a specific problem, I would like to be able to render following small XML file otherwise nor开发者_如何学编程mally but the 'text' part inside 'example' elements with different font and font size.

<?xml version="1.0"?>
<root>
    <example>text</example>
</root>

If it makes any difference I have GTK+ Version 2.22.0 of GNU Emacs 23.1.1.


Yes. Assuming you're using something like nxhtml-mode (which uses mumamo or "multiple major modes mode"), you should be able to do M-x customize-group mumamo [RET], find the font face you want to customize, and go at it. It'll place a block of code in your ~/.emacs that you can look at if you'd like to tweak it by hand.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜