Home › Resources & tools › 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

Cyclooctatetraene Molecule Poster, 2D Structure, English-Labeled
$19.99

A poster featuring the 2D structure of the cyclooctatetraene molecule.

Big Physical Constants
$29.99

A collection of important physical quantities that marks their beauty and significance.

IPA for English Poster, English-Labeled
$19.99

A poster featuring the IPA chart for English

Big Phonetic Transcriptions
$29.99

A collection of phonetic transcriptions showcasing the beauty of phonetic notation.

Kildin Sámi Alphabet Poster, English-Labeled
$17.99

The Kildin Sámi alphabet chart.

Diff Checker

Diff two files.

Email Parser

Parse, inspect, and debug emails online.

Data URI Generator

Generate data URLs in the browser.

Base64 Encoder and Decoder

Encode into and decode from Base64 online.

BCP 47 Parser

Parse, inspect, and debug IETF (BCP 47) language tags online.

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.