[Share Experiences] 我发现文本编辑器代码无法高亮 Resolved
Tofloor
poster avatar
喵呢酱
deepin
2022-04-01 02:56
Author

我发现文本编辑器代码无法高亮。截图_deepin-editor_20220331184933.png
截图_deepin-editor_20220331184948.png

Reply Favorite View the author
All Replies
charm
deepin
2022-04-01 03:23
#1

我没遇到你这个问题,不过tab键的长度和设置的也不一致,以前的版本修复过了,现在又不行了

Reply View the author
rhymos
deepin
2022-04-01 03:30
#2

因为文档未命名
还是txt的缘故吧

Reply View the author
小小怪下士
deepin
2022-04-01 04:02
#3

你没命名呀,txt怎么识别代码关键字

Reply View the author
客服455
deepin
2022-04-06 19:46
#4

您好,文本编辑器deepin-editor是根据打开文件的后缀名来识别该文件是属于什么类型的文件,然后再根据什么类型的文件来加载语法高亮规则,如下图所示:

截图_deepin-editor_20220406114316.png

新建的文档,默认是.txt文件,所以没有语法高亮规则;

Reply View the author