Underscore does not work in Sublime Text 2 theme

I am using ST2 build 2217 on OSX 10.8.2. Everything else works fine, except that I cannot stress the work. Here is 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 such as or is displayed in red with italicized bold text, as expected, but does not emphasize how it would be displayed in TextMate . It does not matter, language or context, I can not stress to work. The only thing that works is parentheses that show subtle underscores for matching pairs. Any suggestions? True False

+5
source share
3 answers

, , . ST (). , ST , .

ST3 (W7), , , . , .

Edit:

(), . , github. , (- ), , , , .

Sample

+3

,

  # To underline a region, we use a "hack" specific to SublimeText
  # where we create a list of empty regions for each character
  # which we want to underline.  When drawing with
  # sublime.DRAW_EMPTY_AS_OVERWRITE, such empty regions
  # will appear as underlined.

  line = view.full_line(view.text_point(lineno, 0))
  position += line.begin()

  for i in xrange(length):
     underline.append(sublime.Region(position + i))
+2

, , , ST2 ST3. userecho, , . , !

+1
source

All Articles