Two HTML syntax Sublime Text 3 - sublimetext

I have two HTML syntax on Sublime Text 3.
http://i.stack.imgur.com/CcxoM.png - screenshot
Plugins:
Emmet
Plugin Control
SublimeLinter
SublimeLinter-php
SublimeCodeIntel
SFTP
PyV8
If all plugins enabled - http://i.stack.imgur.com/fyqTe.png
Windows 8.1 x86
How fix it?

Related

How to setup Xdebug in Sublime Text 3?

I'm using Linux 16.04, my PHP version is 7.0 and version of Sublime Text is 3.0. I followed few tutorials on the topic but none became fruitful to me.
In my case after pressing Ctrl + Shift + P, choosing install Package when I search Xdebug nothing shows.
Any kind of suggestions are welcomed.
Currently I've found two xdebug packages in sublime-text
Xdebug - Only for Sublime Text 2
Xdebug Client - For both Sublime Text 2 and 3
So if you did not found any package suggestion then following could be occurred:
Xdebug Client May be already installed in your sublime text.
Make sure that 'Xdebug Client' is not in ignored_packages of your sublime text settings file.

Sublime Text 3 Change Syntax Coloring?

I recently installed Sublime 3, and it's a really neat program, but I haven't been able to find out how to change the colors of the syntax(i.e. block comments, etc)
I've opened Default.sublime-package in Notepad++, and I've found the "Monokai" section(the color scheme I'm using), but even if I change the colors for comments, or even the background, when I open Sublime 3, the colors aren't what I changed them to. I've looked at similar questions on Stack Overflow, but the solutions posted didn't work, and I haven't been able to find anything on Google either.
How can I change the coloring of the syntax, background, etc in Sublime 3?
Use Sublime themes. Monokai is a default theme. You can download any theme you want (for example, from this site: http://devthemez.com/themes/sublime-text-2) and install it. Sublime Text 2 themes mostly work for version 3 either.
First, install Package Control. Instructions: https://sublime.wbond.net/installation. It is simple:
press Ctrl+`
paste provided string and press Enter.
Then clone repository with the theme you want (you need to have some version control system installed, usually it is Git).
In terminal:
Linux: cd ~/.config/sublime-text-3/Packages
Mac: cd ~/Library/Application Support/Sublime Text 3/Packages
Windows: cd %appdata%\Sublime Text 3\Packages
If repository is in GitHub, use git: (example with Argonaut theme from devthemez.com, link is provided below)
git clone git://github.com/pwaleczek/Argonaut.git 'Theme - Argonaut'
Then final step:
In Sublime, open Preferences -> Settings-User and paste appropriate code provided by theme developer: (again, example for Argonaut theme)
{
"theme": "Argonaut.sublime-theme",
"color_scheme": "Packages/Theme - Argonaut/Argonaut.tmTheme"
}
Examples were for Argonaut theme: https://github.com/pwaleczek/Argonaut (this page also contain some sort of instructions for installation).

Sublime Text 2 and Xdebug

I'd like to use Xdebug with Sublime text 2, I've installed the Xdebug package, now what do I do next? I also have Xdebug installed as a PHP module and its working fine, because I can debug through my Komodo IDE.
You need to download xdebug plugin for sublime text which can be done easily with the help of package manager for sublime text.
after that
- Shift+f8: Open XDebug quick panel
- f8: Open XDebug control quick panel when debugger is connected
- Ctrl+f8: Toggle breakpoint
- Ctrl+Shift+f5: Run to next breakpoint
- Ctrl+Shift+f6: Step over
- Ctrl+Shift+f7: Step into
- Ctrl+Shift+f8: Step out
you can try this plugin
https://github.com/Kindari/SublimeXdebug
have not had time to test it myself though
if you do, it would be nice to report your experience

How do I get sublime text to use the default version of ruby in it's build command?

How do I get sublime text to use the default version of ruby in it's build command? When I use the new hash syntax with sublime texts build system it uses an older version of ruby. How can I make it use the default version?
I use this Ruby.sublime-build in my ~/Library/Application/Support/Sublime Text 3/Packages/User/ folder. It should work with sublime text 2 as well.

What is the full path to the Packages folder for Sublime text 2 on Mac OS Lion

I'm not seeing this question anywhere so I can only assume I'm doing something really stupid but...
What is the full path to the "Packages" folder for Sublime Text 2. I'm looking to install a new theme.
When I go to
/Applications/Sublime Text 2.app/
There is a "Contents" Folder only
Inside that is:
Frameworks Info.plist MacOS Resources SharedSupport
/Users/{user}/Library/Application Support/Sublime Text 2/Packages
Get to it quickly from within Sublime via the menu at Sublime Text 2... Preferences... Browse Packages
A useful shortcut from inside Sublime Text:
cmd-shift-P --> Browse Packages
Now open user folder.
Sublime 2
According to the documentation, in Sublime 2, the package directory is located under the data directory. That directory should be on these locations:
Windows: %APPDATA%\Sublime Text 2
OS X: ~/Library/Application Support/Sublime Text 2
Linux: ~/.config/sublime-text-2
This information is available here (archive link).
Sublime 3
For Sublime 3, the locations are the following:
Windows: %APPDATA%\Sublime Text 3
OS X: ~/Library/Application Support/Sublime Text 3
Linux: ~/.config/sublime-text-3
This information is available here (archive link).
For the portable version the documentation above states: "If you’re using the portable version (Windows only), look for Application/Data. Here, Application refers to the directory to which you’ve extracted the compressed portable files and where the executable resides.
Note that the Data directory only exists with that name in the portable version. In full installations, it is one of the locations indicated above."
Sublime 4
For Sublime 4, when cleanly installed, the locations are the following:
Windows: %APPDATA%\Sublime Text
OS X: ~/Library/Application Support/Sublime Text
Linux: ~/.config/sublime-text
According to this, if Sublime 4 is installed on top of Sublime 3, it uses the ST3 directory. (archive link)
More documentation about Sublime packages here (archive link).
1. Solution
Open Sublime Text console → paste in opened field:
sublime.packages_path()
→ Enter. You get result in console output.
2. Relevance
This answer is relevant for April 2018. In the future, the data of this answer may be obsolete.
3. Not recommended
I'm not recommended #osiris answer. Arguments:
In new versions of Sublime Text and/or operating systems (e.g. Sublime Text 4, macOS 14) paths may be changed.
It doesn't take portable Sublime Text on Windows. In portable Sublime Text on Windows another path of Packages folder.
It less simple.
4. Additional link
How to get current … in Sublime Text
You can browse package folder below method.
Use Sublime Text 2 menu : Preferences\Browse Packages
In Windows 7 : C:\Users\%username%\AppData\Roaming\Sublime Text 2\Packages (equals %appdata%\Sublime Text 2\Packages)

Resources