TM4E brings Java API to tokenize textual documents according to TextMate grammars with an Eclipse IDE client that can do syntax highlighting according to this tokenization; and Eclipse IDE client for VSCode Language Configuration to support matching bracket, auto close, on enter support.
tm4e
is an official Eclipse.org project so it conforms to typical Eclipse.org requirements and guarantees.
You can install tm4e
with the update site https://download.eclipse.org/tm4e/snapshots/. TM4E is usually installed together with its consumers, so end-user should usually not need to directly install it.
[more information coming soon]
The following class and modules should be used as entry point provides:
-
org.eclipse.tm4e.core provides the Java TextMate tokenizer. This project is a Java port of vscode-textmate written in TypeScript. This Java API can be used with any Java UI Toolkit (Swing, Eclipse, etc). See Core section for more information.
-
org.eclipse.tm4e.ui provides the Eclipse org.eclipse.jface.text.presentation.IPresentationReconciler TMPresentationReconciler which is able to tokenize an editor content by using a given JSON, PList TextMate grammar and do syntax coloration. See UI section for more information.
-
org.eclipse.tm4e.languageconfiguration provides the VSCode Language Configuration to support matching bracket, auto close, on enter support with a simple language-configuration.json.
Here a sample with TypeScript:
Here are some projects that use tm4e:
- Eclipse IDE languages and frameworks integrations
- Eclipse Corrosion - Rust development tools in Eclipse IDE.
- Eclipse aCute - C# edition in Eclipse IDE.
- Eclipse Wild Web Developer - Simple and productive Web Development Tools in the Eclipse IDE.
- Eclipse ShellWax - A shell script development plugin for the Eclipse IDE, providing a rich edition experience through integration with the Bash Language Server.
- LiClipseText - An editor which enables Eclipse to be used as a general-purpose text editor, providing support for multiple languages out of the box.
- typescript.java (Deprecated) - TypeScript IDE for Eclipse with JSDT & tsserver.
- EditorConfig for Eclipse - EditorConfig for Eclipse with GenericEditor.
- Phaser Editor 2D - An IDE for the creation of HTML5 games.
- Solargraph - Ruby development tools for Eclipse.
- Dartboard - Dart language support in the Eclipse IDE.
- dart4e - Dart/Flutter development support for the Eclipse IDE.
- haxe4e - Haxe programming language support for the Eclipse IDE.
- Apache NetBeans - A multi-language IDE written in Java that uses TM4E core parts to support syntax highlighting based on TextMate grammars.
- License and community:
tm4e
is a community open-source project licensed under the Eclipse Public License 2.0. - Support: You can ask (and answer!) questions, report bugs, and request features using GitHub issues.
- Git: This
eclipse/tm4e
repository is the reference repository to contribute totm4e
- Build: build can be performed with a simple
mvn clean verify
, continuous integration and deployment is performed by CI jobs at https://ci.eclipse.org/tm4e/ - Continuous testing, integration and deployment is performed by CI jobs at https://ci.eclipse.org/tm4e/ and https://github.com/eclipse/tm4e/actions
- Developers mailing-list: Contributors are also expected to subscribe the tm4e-dev mailing-list.
- Becoming a committer: as usual with Eclipse.org projects, anyone who's made significant contributions and who's upheld quality standards alongside good judgement and open-mindedness.