Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Color Scheme for code not working - Sublime Text 2

Sometimes Sublime Text 2 will recognize my code with its color scheme and other times it won't. I do a lot of pasting code into the code editor and editing it, but I rarely write code in it, mostly editing my older code. Its really helpful having the color scheme!

like image 604
Seth Urquhart Avatar asked Jan 24 '13 23:01

Seth Urquhart


People also ask

Why is my code in Sublime Text not colored?

Click the relevant language and the Sublime will do the coloring according to your selection. Show activity on this post. If you are just opening new files and pasting text in, the default syntax is "Plain Text", thus no highlighting.

Why is my Sublime Text not working?

There are two main reasons why Sublime Text may become unresponsive: certain plugins are interfering with the program or the cache files are clogging up the program's processes. Removing your programs and reverting Sublime Text to freshly installed state should fix this problem for most users.

How do I enable syntax highlighting in sublime?

To enable Syntax Highlighting click on “View” in the top bar, then hover your mouse over “Syntax”, and select your programming language from the list. Alternatively, if you save a document with a supported file extension, Sublime Text 3 will automatically apply the Syntax Highlighting for that language.


3 Answers

You can also set the coding language by clicking the bottom right corner "Plain Text" to open a list of languages to choose from. Click the relevant language and the Sublime will do the coloring according to your selection.

like image 194
blindJustice Avatar answered Oct 26 '22 17:10

blindJustice


If you are just opening new files and pasting text in, the default syntax is "Plain Text", thus no highlighting. You can set the syntax in the buffer by opening the command palette and searching for "Set Syntax: ". If that isn't what is happening, please try to give more information.

-skuroda

like image 34
Seth Urquhart Avatar answered Oct 26 '22 17:10

Seth Urquhart


Go to a color page and copy just the < ? and php from the top. Go to the white text page and highlight/paste.

like image 21
Darryl Avatar answered Oct 26 '22 18:10

Darryl