问题
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