Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Underline not working in Sublime Text 2 theme

I'm using ST2 build 2217 on OSX 10.8.2. Everything else works great, except I can't get underlining to work. Here's an example from my theme file:

<dict>
    <key>name</key>
    <string>Language Constant</string>
    <key>scope</key>
    <string>constant.language</string>
    <key>settings</key>
    <dict>
        <key>fontStyle</key>
        <string>bold italic underline</string>
        <key>foreground</key>
        <string>#FF1308</string>
    </dict>
</dict>

In ST2, a Python language constant like True or False shows up in red with bolded italic text, like expected, but not underlined like it would show up in TextMate. It doesn't matter the language or context, I can't get underlining to work. The only thing that does work is bracket matching, which does show a thin underline for matching pairs. Any suggestions?

like image 744
MattDMo Avatar asked Feb 14 '13 17:02

MattDMo


1 Answers

It may not be supported, thoguh I'm no expert at the theme stuff. You may want to ask on the ST forums (link). I think more ST users look there than here.

I just did a test in ST3 (W7), but there doesn't appear to be an underline. Next best thing would be to make a feature request I suppose.

Edit:

I've updated my plugin (link) to underline. If you have any issues, create an issue on the github page. A bit of a warning though, it's not the most efficient plugin (something I need to improve on), so if you have large files, there will probably be some performance degradation.

Sample

like image 94
skuroda Avatar answered Sep 18 '22 03:09

skuroda