在Sublime Text 2中更改单个作用域的字体大小 [英] Change font-size for a single scope in Sublime Text 2

查看:104
本文介绍了在Sublime Text 2中更改单个作用域的字体大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

.tmTheme文件中,Sublime Text 2是否可以在单个作用域中更改字体大小? 我找不到任何有关可用键的文档.

Is it possible in a .tmTheme file for Sublime Text 2 to change the font-size in a single scope? I couldn't find any documentation on what keys I had available.

我真正想做的是用不同的大小字体在LaTeX中的\section{name}中的部分名称,例如:

What I really want to do, is make the name of the section in \section{name} in LaTeX in a different size font, with something like:

<dict>
  <key>scope</key>
  <string>entity.name.section.latex</string>
  <key>settings</key>
  <dict>
    <key>font_size</key>
    <string>20</string>
  </dict>
</dict>

推荐答案

不幸的是,这在Sublime Text 2或3中似乎无法实现.有关详细信息,请参见此帖子..

Unfortunately, this does not seem to be possible in Sublime Text 2 or 3. See this post for details Per-token font size in Sublime Text 2.

我还尝试根据范围更改字体系列(例如consolas或helvetica),这似乎同样是不可能的.我不确定为什么无法使用此功能,所以也许如果您向Jon Skinner发送电子邮件,他会为您解决;)

I have also tried to change font-family (e.g. consolas or helvetica) based on scope, which seems to be equally impossible. I'm not sure why this functionality isn't available, so maybe if you send Jon Skinner an email, he'll fix it for you ;)

这篇关于在Sublime Text 2中更改单个作用域的字体大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆