简体   繁体   English

Sublime 文本语法高亮

[英]Sublime Text Syntax Highlight

Good morning.早上好。 In Sublime Text 3 (Windows) I have installed the FountainHead extension.在 Sublime Text 3 (Windows) 中,我安装了 FountainHead 扩展。 I would like to know where to find the syntax highlight file.我想知道在哪里可以找到语法高亮文件。 Thank you.谢谢你。

Syntax highlighting is controlled by two files - the language parsing definition file, which ends in either .tmLanguage or .sublime-syntax , and the color scheme file, which ends in either .tmTheme or .sublime-color-scheme .语法高亮由两个文件控制 - 语言解析定义文件,以.tmLanguage.sublime-syntax结尾,以及以.tmTheme.sublime-color-scheme结尾的配色方案文件。 .tmLanguage and .tmTheme files are in XML format, while the .sublime-* files are in JSON. .tmLanguage.tmTheme文件采用 XML 格式,而.sublime-*文件采用 JSON 格式。

To view specific files in a package, open the Command Palette ( Ctrl Shift P ) and hit v , which should bring up the View Package File option.要查看 package 中的特定文件,请打开命令面板 ( Ctrl Shift P ) 并点击v ,这将显示View Package File选项。 Hit Enter , then type in FountainHead/ to see all the files in the FountainHead package.点击Enter ,然后输入FountainHead/以查看 FountainHead package 中的所有文件。 The language parsing definition file is in the main directory, and is called FountainHead.tmLanguage .语言解析定义文件位于主目录,名为FountainHead.tmLanguage The syntax highlighting .tmTheme files are located in the FountainHead/schemes subdirectory - there are 11 of them.语法高亮.tmTheme文件位于FountainHead/schemes子目录中 - 其中有 11 个。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM