Sublime Forum

How do I change the color of a particular text?

#1

I tried to change the color of a specific text, but I failed because I didn’t know how. Help me please.

0 Likes

#2

What have you tried so far? Your question is a little open ended - what kind of text, in what kind of file, in what kind of circumstance?

Colors in Sublime are applied by a combination of a syntax definition knowing that specific text is special in some way and a color scheme using that information to specify what color to use.

As a result, this could either be very simple or extremely advanced, depending on what you want to achieve.

0 Likes

#3

Hi! I have similar problem. I would like to for example character list like:

111-222-333
444-555-666

to be color differently (notice the new line after 333) like: text-color : red; or background-color : green;

How can I achieve this in sublime-text? I know how to edit color themes, but I dunno how to target the specific character list, so if anybody know how i can do regex in sublime-text, let me know :slight_smile:

EDIT:

I have tried - Change Some Comments' Color

But cannot find:

CSS.sublime-syntax

file.

0 Likes