Sublime Text中的白色文本 [英] White text in Sublime Text
问题描述
我从他们的网站上下载了Sublime文本,但是我的代码仍然是白色的,我不知道为什么。我松了口气,然后重新安装了3次,尝试安装主题包等,但我不明白这是怎么回事。
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.
推荐答案
当Sublime Text不起作用时,就会发生这种情况不知道选择哪种语法突出显示。首先,Sublime Text从文件扩展名中猜测语法。例如。如果您有一个名为 my_file_name.php
的文件,则Sublime Text假定PHP语法突出显示为最佳。
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.
在您的图片文件名为 script_connection
,没有任何文件扩展名,因此Sublime Text不知道它是哪种语法。您可以从菜单查看»语法
中选择一种语法,或按 Strg + Shift + P ,然后键入设置语法
。另一种方法是单击Sublime Text右下角的语法名称(可能是 Plain Text
),然后选择一种语法格式。
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.
这篇关于Sublime Text中的白色文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!