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 from the update site https://download.eclipse.org/tm4e/releases/latest/. TM4E is usually installed together with its consumers, so end-user should usually not need to directly install it.
The latest snapshot build can be installed from the update site https://download.eclipse.org/tm4e/snapshots/.
TM4E version | Min. Eclipse version |
---|---|
latest | 2023-09 (4.29) |
0.9.0+ | 2023-09 (4.29) |
0.8.1+ | 2023-06 (4.28) |
0.8+ | 2023-03 (4.27) |
0.6.3+ | 2022-12 (4.26) |
0.6.2+ | 2022-09 (4.25) |
0.6.0+ | 2022-03 (4.23) |
Snapshot binaries of org.eclipse.tm4e.core
are available at https://repo.eclipse.org/content/repositories/tm4e-snapshots/org/eclipse/org.eclipse.tm4e.core/.
You need to add the following repository configuration to your Maven settings.xml
:
<?xml version="1.0" encoding="UTF-8" ?>
<settings>
<profiles>
<profile>
<repositories>
<repository>
<id>tm4e-snapshots</id>
<name>tm4e-snapshots</name>
<url>https://repo.eclipse.org/content/repositories/tm4e-snapshots/</url>
<releases><enabled>false</enabled></releases>
<snapshots><enabled>true</enabled></snapshots>
</repository>
</repositories>
</profile>
</profiles>
<activeProfiles>
<activeProfile>tm4e-snapshots</activeProfile>
</activeProfiles>
</settings>
Then you can reference the dependency in your pom.xml like so:
<dependencies>
<dependency>
<groupId>org.eclipse</groupId>
<artifactId>org.eclipse.tm4e.core</artifactId>
<version>[VERSION]-SNAPSHOT</version>
</dependency>
</dependencies>
[more information coming ...]
The following class and modules should be used as entry point provides:
An example with TypeScript:
Here are some projects that use tm4e:
github.com/eclipse/tm4e
repository is the reference repository to contribute to TM4E./mvnw clean verify