visual studio code 语法高亮
时间: 2023-09-16 18:10:37 浏览: 220
vb 语法高亮
Visual Studio Code可以通过安装扩展来实现Fortran语法高亮显示。在下载Visual Studio Code后,您需要执行一个安装脚本setup.sh将vs.language.fortran添加到Mac OS X上的Visual Studio Code中。该脚本可以从存储库中获取。
不仅如此,您还需要对语法定义格式(TextMate Manual & Language Grammars)进行深入学习,这是一个更进一步的步骤。
默认情况下,语法文件syntaxes/quan4.tmLanguage.json中,关键词的模式匹配为:"match": "\\b(if|while|for|return)\\b" 。这意味着,对于Fortran代码中的关键词if、while、for和return,Visual Studio Code将会进行高亮显示。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [vs.language.fortran:Visual Studio Code 中 Fortran 的语法高亮显示](https://download.csdn.net/download/weixin_42098892/19309433)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [2017-12-24 为新语言编写Visual Studio Code语法高亮插件](https://blog.csdn.net/qq_45533800/article/details/109695800)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文