Color Scheme for code not working - Sublime Text 2
Asked Answered
E

5

7

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!

Eclogite answered 24/1, 2013 at 23:22 Comment(5)
This might be a bug in Sublime -- Did you try the sublime forum sublimetext.com/forumCerise
Why I asked it here is because there is rarely anybody on Sublime Forums.Eclogite
Well, if someone who uses Sublime were to try to answer this question, information such as what language, and a code sample that sublime does not recognize correctly would be helpful. Perhaps you can edit your question and add this information?Cerise
@SethUrquhart every single topic on the first 3 pages of the Technical Support forum has been active within the past week.Extravert
I am having trouble with sublime at work. At home I installed it and the text color for at least the Java part was incredible. Colored fonts for every type of word. Went to work and told my boss and he told me to download it and then came to look and nothing but white code on black. I think this has to do with the setting preference but how can I turn that on. Is it something that has to be done because at home it came on immediately.Caaba
E
7

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

Eclogite answered 25/1, 2013 at 17:1 Comment(0)
C
13

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.

Commission answered 4/8, 2014 at 11:53 Comment(0)
E
7

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

Eclogite answered 25/1, 2013 at 17:1 Comment(0)
S
1

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

Semirigid answered 22/12, 2018 at 16:18 Comment(1)
try to highlight the keywords and be clear with the format it will help to reach out your answer for othersVirgel
S
0

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.

Strother answered 26/2, 2017 at 11:14 Comment(0)
Y
0

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

Yowl answered 4/4, 2020 at 12:44 Comment(1)
This section belongs to any possible answer. for asking a question please use the comment section.Grantee

© 2022 - 2024 — McMap. All rights reserved.