Change font-size for a single scope in Sublime Text 2 [duplicate]

旧巷老猫 提交于 2019-12-23 16:26:37

问题


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.

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>

回答1:


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.

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 ;)



来源:https://stackoverflow.com/questions/11018066/change-font-size-for-a-single-scope-in-sublime-text-2

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!