将Emacs / vim突出显示转换为TextMate(对于SublimeText) [英] Converting Emacs/vim highlighting to TextMate (for SublimeText)

查看:227
本文介绍了将Emacs / vim突出显示转换为TextMate(对于SublimeText)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有语法突出显示文件 for pyray in vim(。 vim)和emacs(.el),并希望在Sublime Text(3)中使用它们。

I have syntax highlighting files for Pyret in vim (.vim) and emacs (.el) and would like to use them in Sublime Text (3).

根据这个答案等研究,Sublime Text风格主题以 TextMate格式编写。

According to this answer and other research, Sublime Text style themes are written in TextMate format.

存在工具帮助从TextMate转换为Emacs,但是我联系了作者,他没有意识到有任何工具来帮助促进相反的转换。

There exists a tool to help convert from TextMate to Emacs, but I contacted the author and he isn't aware of any tools to help facilitate the opposite conversion.

类似的问题被问到(re:vim)但一年前没有回答: .vim语法突出显示为textmate或崇高的文字2 - 该asker最终构建了他自己的TextMate主题手动,但我不知道该怎么做。

A similar question was asked (re: vim) but not answered a year ago: .vim syntax highlighting to textmate or sublime text 2 -- that asker ended up building his own TextMate theme manually, but I'm not sure how to go about that.

我想知道是否已经开发了任何工具来帮助转换vim或emacs语法style文件到TextMate,如果没有,我将如何转换vim / el 文件转换成用于导入到TextMate的JSON / XML。

I would like to know if there have been developed any tools to help convert a vim or emacs syntax style file to TextMate, and, if not, how I would go about converting the vim/el files into JSON/XML for importing into TextMate.

推荐答案

虽然我还没有找到任何工具帮助我,我找到了一些帮助。

While I haven't been able to find any tools to help me out, I have found some help.

这个解释如何构建一个vim风格指南已被证明是非常宝贵的帮助我了解我正在转换的vim语法文件的构造。

This explanation of how to build a vim style guide has proven invaluable in helping me understand the construction of the vim syntax file I am converting.

这个一个超级有帮助的指南正在走过我如何在YAML中手动构建一个模板,然后通过PackageDev SublimeText包将其转换为SublimeText的tmL语言。

This a super-helpful guide is walking me through how to manually build a template in YAML and then convert it to SublimeText's tmLanguage via the PackageDev SublimeText package.

编辑:我的解决方案,附带说明可用 here

EDIT: My solution, with instructions, is available here.

这篇关于将Emacs / vim突出显示转换为TextMate(对于SublimeText)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆