Y.L.
Y.L.

Reputation: 1314

How to set comment into italic strings in Sublime Text2?

I want to add some new configuration in Preferences.sublime-setings to make the comment in my java code to italic, what configuration should I add?

Upvotes: 4

Views: 1575

Answers (1)

user193661
user193661

Reputation: 939

  1. Open the .tmtheme file of the theme you're using:
    • Go to Preferences > Color Scheme and find the checked one.
    • Go to Preferences > Browse Packages and search for that name.
  2. Add italics to the comment attributes:
    • Search for <string>Comment</string>
    • Inside <key>settings</key><dict>, add:

        <key>fontStyle</key> 
        <string>italic</string>

Upvotes: 8

Related Questions