Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

sublime text 3 - change syntax colours

I would like to change a particular syntax highlighting colour in Sublime Text 3 - how can I do that?

Most answers about Sublime Text concern Mac OS (some also windows) - any details (paths etc..) relevant to Ubuntu (or other linux distros) would be helpful.

like image 262
drevicko Avatar asked Jul 24 '13 03:07

drevicko


People also ask

How do I change the syntax color in Sublime Text 3?

Go to the folder where sublime_text3 binary is. Go to Packages folder Open Color Scheme - Default. sublime-package Find the concern color scheme. Open it in some editor and change the values as per requirement.

How do I turn on syntax highlighting?

After opening login.sh file in vim editor, press ESC key and type ':syntax on' to enable syntax highlighting. The file will look like the following image if syntax highlighting is on. Press ESC key and type, “syntax off” to disable syntax highlighting.


2 Answers

Go to the folder where sublime_text3 binary is. Go to Packages folder Open Color Scheme - Default.sublime-package Find the concern color scheme. Open it in some editor and change the values as per requirement. The archive manager will prompt for updation of file changes. Say yes. Restart sublime 3.

Note: Sublime 3 Packages from this folder unlike sublime 2 which stores Packages in .config folder in home

like image 115
Kaunteya Avatar answered Oct 21 '22 02:10

Kaunteya


All the syntax colouring is done in your theme. All themes are located in /Preferences/Color Scheme

You can open the Preferences Folder by going to Preferences -> Browse Packages

like image 27
wesbos Avatar answered Oct 21 '22 03:10

wesbos