Sublime Text 2 is a text editor for OS X, Linux and Windows, currently in beta.

+1

problem with commenting

Rajkumar Jegannathan fa 13 anys actualitzat fa 13 anys 0
In JavaScript adding a comment at the end of the line comments the entire line.
+1

Scrollbar disable shadow

Richard Mišenčík fa 11 anys 0
Hello, Im editing a theme and I would like to nkow if it is possible to disable the scrollbars dropdown shadow? And also the one on the right from line numbers.
+1

Mac OS X dictionary lookup does not work in distraction free mode

Karolis Misiunas fa 12 anys updated by Morris Hopkins fa 11 anys 1

Since Mountain Lion trackpad triple-finger tap does a dictionary lookup for a selected word. The feature works fine in normal mode of ST2 or ST3, but in distraction free mode it shows a dictionary for a wrong word. Usually few words to the right.   


+1

sublime text 3 hangs after 'close window' on fullscreen on mac os

Артем Дайнеко fa 11 anys 0
sequence of actions:
1. Open sublime text (existing project loads)
2. Make it fullscreen
3. New Window (it goes on fullscreen)
4. Close Window
5. Profit (remaining window hangs or crashes)
Build 3059, Mac OS 10.9.1
+1

Vintage command mode replace selection bug

Raphael Schweikert fa 12 anys 0

When a selection has been created in Vintage’s command mode, the position of the cursor (underscore) should not be relevant in deciding what to replace when pressing “s” to delete the selection and enter insert mode.


Steps to reproduce

  1. Type a test string, e.g. “test;”
  2. Enter Vintage command mode.
  3. Select “test” by double-clicking.
  4. (Note that the cursor sits on the last selected character.)
  5. Hit “s”.
Expected Result: “test” should be deleted with the insertion cursor being placed before the semicolon.
Actual Result: Both the selected text as well as the semicolon are deleted.

The bug is related to the placement of the cursor prior to hitting “s” since when creating the selection by dragging from right to left (and, thus, having the cursor at the beginning of the selection), the command works as expected.
+1

contextual syntax highlighting in PHP

sorahn fa 13 anys 0
One feature that was really nice in my previous editor... (i'll just leave it as that) was that in PHP if you did echo<<<HTML or echo <<<SQL (or anything similar to those it would use the correct syntax until it reached the end of the echo.

Is that possible?
+1

snippet with text transformation

baurzhan zhakashev fa 13 anys updated by FichteFoll fa 13 anys 1

i have this snippet

<snippet>

    <content><![CDATA[ \$${1:var}['${1}']['${3}'] ]]></content>

    <tabTrigger>var2</tabTrigger>

    <scope>text.html,source.php</scope>

    <description>$var['']['']</description>

</snippet>


and i want to text transform (Title case) this part['${1}'] while typing ${1:var}

so result should be like this


$adv['Adv']['name']


is it possable?


+1

Bug in highlighting Erlang format strings

Christian Kruse fa 13 anys 0
Syntax highlighting for Erlang has a bug in the format strings parser: the format string ~4..0B (an integer with 4 digits, filled up with 0's when the int is smaller, same as %04d in sprintf() format string) is highlighted red (as invalid) while it is a valid format string.
+1

Adjust the alpha of the sublime text's window when the mouse move outside the window

Dupl fa 13 anys actualitzat fa 13 anys 0
Let adjust the transparency of the main st2's window when the mouse move out of it (or with a keypress) to let a faster and better view of the website behind it (live reloaded with CodeKit or LiveReload) Example ->
+1

Support more complex language guessing.

James Farwell fa 13 anys actualitzat fa 13 anys 0
Guessing language by the file extension alone or by the first line is often not enough. For example, the ".h" extension is shared by C, C++, Objective-C, and Objective-C++ (and more). The user can choose which language to open ".h" files as by default, but if they are working in a mixed codebase (e.g. it is likely if they are working with Objective-C++ there will also be Objective-C and C .h files laying around too) then this isn't enough. It would be pretty nice if there were keyword matching on the whole file to be able to guess the language.

For example, for ".h" files:

contains["@interface", "@end", "#import"] -> Objective-C
contains["class", "namespace", "::"] -> C++
contains[Objective-C AND C++] -> Objective-C++
default -> C


Another solution might be able to allow the user to assign the language based on directory... e.g. all ".h" files in "foo/bar/objc" are Objective-C but "foo/bar/cpp" are C++.