Color output in Sublime Text 2 console? - sublimetext2

Is there any way to output coloful text to the sublime text console? I tried this:
"\033[0;32mTest\033[0m"
and the console displays something similar to this:
ESC[0;32mTestESC[0m"

Unfortunately, the Sublime Text console is essentially monochrome. Its foreground and background colors can be changed via the Packages/Theme - Default/Widgets.stTheme file (or your theme's equivalent), but you can't colorize output using terminal escape codes, like you are using.

Related

PhpStorm can't highlight the file

When I write JavaScript in PhpStorm the articleList.js file looks great but list.js become like plain text.
How can I fix it?
Please check if list.js is added to text file patterns in Preferences | Editor | File types -> Text file type. Removing this pattern should solve your problem

Hindi language and sublime text

How can I use sublime text with the Hindi language? I just want to copy and paste the word: " इटली " in the editor, but It returns me the following text instead:
How to remove that circle?
You can't remove that circle.But that won't cause a problem. If you are going to show it in a web-page it will be shown normally.
Other solution is to use notepad instead.

sublime text 2: view find/search history

Is there a way to view the find/search history in Sublime Text 2?
In eclipse there is such a feature, see screenshot below. I'd expect something similar in sublime text 2.
It should be the same in ST2, but in ST3 you can put your cursor in the Find (CtrlF/⌘F) search field, and hitting the ­­↑ and ↓ arrow keys should scroll through the search history.
You can also view the entire raw history (of searches, file/folder paths and more)
Open the file Session.sublime-session and search for find_history
On Mac OSX: ~/Library/Application Support/Sublime Text 3/Local/Session.sublime_session
On Windows, I'm not exactly sure but probably something like:
%AppData%\Sublime Text 3\Options\Session.sublime-session
AppData\Roaming\Sublime Text 3\Local\Session.sublime_session

Is there a plugin for Sublime Text that folds lines inside of a line you just unfolded?

When I unfold a line in Sublime Text, I don't like how the lines contained inside are already unfolded. I want to use a plugin that fixes this. Below are some images that help explain what I'm looking for.
Imagine a variable user folded like this in Sublime Text:
When I unfold the user variable, I want my code to look like...
And if I unfold user.friends, I want my code to look like...
Is there a plugin like this that exists for Sublime Text?
Thank you for any help!

Set Default Syntax for a New Created File in Sublime Text 2

In Sublime Text 2, when I double-click on the tab bar, it will create a new file, Sublime Text 2 will give it Plain Text syntax, How to change this default Plain Text syntax to HTML syntax?
I know there is a sublime-DefaultFileType that could set the default file type of new files which are created with the Ctrl+N. However, how can I make it take effect when I double-click on the tab bar to create a new file?
I'm afraid there isn't a solution for double click.
According to the official website, DefaultFileType
This only affects files which are created with the Ctrl+N shortcut (Cmd+N on OSX).
for installation, follow the Installation part.
Please refer to this stack post: (On Text 3 it also works fine)
Sublime Text 2 Default File Type on new file
This py code solution support double click. DefaultFileType might be an easy option. But it didn't work in some cases, it has been 5 years old. In fact, I have to use this method for text 3 on windows.
This is the syntax for SQL :
http://rouge.jneen.net/pastes/PNq0
save it like DefaultLanguage.py
use the default location : \Data\Packages\User