Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

White text in Sublime Text

I downloaded Sublime text from them website and my code still white, I don't know why. I unistalled and reinstalled it 3 times, tried to install themes packages etc I don't understand what is wrong.

enter image description here

like image 809
Bouh10 Avatar asked May 14 '15 13:05

Bouh10


People also ask

How to change the color scheme in Sublime Text 3 editor?

By Default Sublime Text 3 Editor has a gray or dark-colored theme to it. If you wish to change the theme to a white the background and black text theme then you can try the below options, Now select: Color Scheme... You would see a drop-down option, select Breakers, Sixteen or Celeste.

How to show all whitespace in Sublime Text Editor?

Sublime Text Editor – Show All Whitespace infotinks > Article Catalog > Other > Sublime Text Editor – Show All Whitespace 2021-03-04Otherkossboss The ability to see all whitespace (spaces, tabs, etc) is not very clear in sublime and not easily accessible. You can change it by doing this:

How to turn off linting in Sublime Text?

If you are using Anaconda plugin (for Python development) this is it's linting functionality - it highlights Python syntax errors and PEP8 violations. You can disable this feature completely or change the color of this outline by adding some custom rules to your current SublimeText theme: In Sublime Text menu: Preferences > Browser Packages...

How does Sublime Text highlight source code and prose?

The highlighting of source code and prose in Sublime Text is controlled by a color scheme. A color scheme assigns colors and font styles to scopes, which are assigned to the text by the syntax.


2 Answers

This happens when Sublime Text doesn't know which syntax highlighting to choose. First of all Sublime Text guesses the syntax from the file extension. E.g. if you have a file named my_file_name.php Sublime Text assumes that the PHP syntax highlighting is the best.

In your picture the file name is script_connection without any file extension so Sublime Text doesn't know which syntax it is. You can select a syntax from the menu View » Syntax or press Strg + Shift + P and type Set Syntax. Another way is to click the syntax name (probably Plain Text) on the right bottom corner of Sublime Text and select a syntax format.

like image 113
Pᴇʜ Avatar answered Nov 13 '22 00:11

Pᴇʜ


Sometimes when we insert Html and css and php codes in one file and as a default Sublime highlight the html and css codes because sublime knows just know html and css codes so we should open sublime application and select view from navigation bar and select syntax and then select php it will knows all types of tags and elements and highlight all. Sublime => View => Syntax => PHP

like image 28
Salma Rahmani Avatar answered Nov 12 '22 22:11

Salma Rahmani