How can I convert a Sublime Text syntax highlighting file to a textmate syntax for visual studio?

耗尽温柔 提交于 2019-12-06 16:34:54

You'll need to make a VS Code extension, but it's not so hard. Check out the docs first. There's an extension generator you can use to create a skeleton project.

I made a syntax highlighter recently for a semi obscure language (Asterisk dialplan), it's on my Github if you want to have a look.

The main pieces are the package.json and the syntaxes\yourlanguage.tmLanguage files. I believe Sublime uses TextMate grammars (i.e. the tmLanguage file) so you can probably just copy that across and craft your package.json and you're done.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!