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

матрёшка IPA Transcription Poster
$14.99

A poster featuring the phonetic transcription of "матрёшка" in the International Phonetic Alphabet (IPA).

Key Signatures Poster
$19.99

A poster featuring the key signatures chart.

Mandaic Alphabet Poster, English-Labeled
$17.99

The Mandaic alphabet chart.

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

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

Monosaccharides Poster, English-Labeled
$19.99

A poster featuring the common monosaccharides.

QR Code Generator

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

Email Parser

Parse, inspect, and debug emails online.

MD5 Hash Generator

Calculate the MD5 hash for text data online.

Diff Checker

Diff two files.

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.