Sublime Forum

Why I cannot put any color scheme when I use Python

#1

When I want to type on Sublime Text using Python, I don’t find any color scheme, and in the video that I am watching with Sublime Text, the guy there has color scheme, but I don’t have any. It would be really useful to have one. I haven’t tested yet another language, but I think is the same

0 Likes

#2

The main reason for not having any syntax highlighting when editing files is because Sublime doesn’t know what kind of file you’re editing:

  • You just create a new tab and start typing some code; the file is plain text until you tell Sublime otherwise
  • You haven’t saved the file to disk with an extension (e.g. .py) that would give Sublime a clue as to the type of file you’re editing
  • You saved your file with the wrong extension (e.g. myprogram.txt, which Sublime doesn’t think is Python,

It’s unclear what you’re seeing here without further information, but my advice would be to make sure that the first thing you do when you create a new file is save the empty file to disk with an appropriate name first. You’re going to need to do that to run the program anyway.

1 Like