Seth Urquhart
Seth Urquhart

Reputation: 599

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!

Upvotes: 7

Views: 27190

Answers (5)

Data engineer
Data engineer

Reputation: 11

Javascript Syntax was not working for me, so changed to Java. Color shading appeared.

Upvotes: 0

Darryl
Darryl

Reputation: 11

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

Upvotes: 1

Awet Haileslassie
Awet Haileslassie

Reputation: 1

This worked for me. i had a problem with Arduino color coding but now i solved that with the help of this trick. 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.

Upvotes: 0

blindJustice
blindJustice

Reputation: 235

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.

Upvotes: 13

Seth Urquhart
Seth Urquhart

Reputation: 599

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

Upvotes: 7

Related Questions