Syntax highlighting

A coworker of mine wrote syntax highlighter for a custom markup language we have been using. She wrote it for ST3 but shared the .tmLanguage and .YAML-tmLanguage files with me. Is there an easy way to import this into WebStorm/IntelliJ from these formats?

4 comments
Comment actions Permalink

Is there a way to add a .tmbundle through the plugin api? So I could write basic syntax highlighting instead of a custom language then include it with my plugins resources?

0
Comment actions Permalink

Yes, you can use the TextMateSettings class from the TextMate plugin to add a bundle programmatically. The bundle has to be an actual file on disk; it can't be stored inside the jar file of your plugin.

0
Comment actions Permalink

Ahh that's too bad. I was hoping to distribute the highlighting as part of my plugin's resources. Thanks for the help!

0

Please sign in to leave a comment.