I want to add in my eclipse plugin possibility of syntax highlighting by some regexs. I learned that it is possible to implement through TM4E from eclipse. Where can I find some documentation or tutorials about connection to eclipse?
Eclipse TM4E™ - TextMate support in the Eclipse IDE
I looked for documentation and tutorials anywhere, but it didn't give results.
First, make sure to add tm4 as a dependecy for your project (edit plugin.xml dependencies).
Then register the content type you want to highlight. Add this to your plugin.xml (The example is for .asm files):
Then add your TextMate grammars. Make sure that scopeNameContentTypeBinding content type id matches your content type's id and scope name matches the scope name for the grammar:
Finally, copy your TextMate grammars to the correct location, in this case
Update:
Set the scope name in the grammar as well. Again, scopeName should match the name specified in the tm4e extension point: