Sublime Forum

Sublime Text 3 is not working

#1

Hello guys!

Okey so here is there problem: when i download Sublime Text 3 and open it i notice some problems. First of all when i type "DOCTYPE is not in color. When i write </ it stays like this rather then write it’s self. So color and task bar are the main issues ( for now). I tried on Laptop and on computer - same deal. Could you please help me fix this problem it’s urgent! Thank you!

0 Likes

#2

Various features, including syntax highlighting, are dependent on the type of file that you’re editing. For example DOCTYPE is only special inside of HTML files, and closing a tag with </ only makes sense in files that contain tags, such as HTML or XML.

If you just open Sublime and start typing, it assumes you’re editing a plain text file until you tell it differently, which is visualized in the status bar in the bottom right, where you will see it say Plain text.

In order to tell Sublime that what you’re editing is HTML (for example) you need to do one of the following things:

  1. Save the file with an appropriate extension (e.g. .html) so that Sublime knows what sort of file it is.
  2. Click where it says Plain text in the status line, which opens a menu that allows you to select the appropriate syntax for the file that you’re editing
  3. Select View > Syntax from the main menu and pick the appropriate file type there (you get the same menu as mentioned in the previous step when you do this)
  4. Open the command palette (Tools > Command Palette or the associated key which is visible next to the menu item) and enter syn: to filter the command list to just commands for changing the syntax, then pick the appropriate syntax (you can type a partial name to filter further).
0 Likes

Snippets stoped working over night
#6

Thank you buddy! Everything is working perfectly right now!:slight_smile:

0 Likes

#7

uppercase ‘DOCTYPE’ not recognised for me while lowercase ‘doctype’ is ???

0 Likes