Home › Resources & tools › TextMate Grammar Testing Tool

TextMate Grammar Testing Tool

TextMate Grammar Testing Tool
TextMate Grammar Testing Tool

TextMate grammars are used to define syntax highlighting in Visual Studio Code and other editors.

This tool is an online tester for TextMate grammars in the JSON format. If you have a PLIST or YAML grammar, convert it to JSON using the PLIST to JSON or YAML to JSON tool. Note that the grammar must have the scopeName string property.

The preview code is highlighted using the provided grammar. You can edit both the grammar and the preview code.

The example grammar describes the syntax highlighting rules for a made-up language called QuarkScript. This grammar defines four keywords (if, while, for, and return) and supports double-quoted strings with escape sequences like \n.

The TextMate grammar to test.
The preview of the grammar.

See also

18-Crown-6 Molecule Poster, Ball-and-Stick Model, Stylized, English-Labeled
$19.99

A poster featuring the ball-and-stick model (stylized) of the 18-crown-6 molecule.

catalyst IPA Transcription Poster
$14.99

A poster featuring the phonetic transcription of "catalyst" in the International Phonetic Alphabet (IPA).

Tongan Alphabet Poster, English-Labeled
$17.99

The Tongan alphabet chart.

Big Chinese Characters
$29.99

A collection of large-format Chinese characters.

Dodecahedron Poster, Solid Shape, English-Labeled
$19.99

A poster featuring a dodecahedron.

Email Parser

Parse, inspect, and debug emails online.

Diff Checker

Diff two files.

QR Code Generator

Create QR code images from text, URLs, or other simple data online.

MD5 Hash Generator

Calculate the MD5 hash for text data online.

Data URI Generator

Generate data URLs in the browser.

All prices listed are in United States Dollars (USD). Visual representations of products are intended for illustrative purposes. Actual products may exhibit variations in color, texture, or other characteristics inherent to the manufacturing process. The products' design and underlying technology are protected by applicable intellectual property laws. Unauthorized reproduction or distribution is prohibited.