Sublime Forum

[Solved] Change colour on commands

#1

Hi, I just took the step from thinking about learning html, css and javascript to actually start reading about it.
Yesterday I downloaded Sublime text and started a youtube tutorial on html coding.
Ive managed to “program” a basic webpage with some text, photo and link.
So, as you might have guessed, I am a complete beginner.

I notice when I look at other peoples text editors that their commands highlight in different colours.
My text is 100% white, but it seems nice to get some contrast, how can I turn this feature on?

My setup:
(can only put up one image apparantly, but its only white text, no red highlighting)

How I want it to look:
http://www.webcodecentral.com/wp-content/uploads/2013/05/html-sublimetext.jpg

Thank you :slight_smile:

0 Likes

#2

The syntax highlighting is primarily determined by the extension of the file, so your file may not have the correct extension, so check that first.

Failing that, you can also tell Sublime directly what sort of syntax highlighting to use:

  • Via the View > Syntax > HTML option
  • Via Tools > Command Palette (or it’s much handier keyboard shortcut Ctrl+Shift+P on Win/Linux or Shift+⌘+P on Mac), enter text similar to syntax html to narrow the options down to the one that will set the syntax for you.
0 Likes

#3

"Failing that, you can also tell Sublime directly what sort of syntax highlighting to use:

Via the View > Syntax > HTML option"

This solved the issue.
Thank you very much :slight_smile:

0 Likes