Official language and syntax support for DTX 1.0.0.
Current extension name: DTX by DTX Office.
DTX 2 development is open in the compiler repository, but active public syntax remains DTX 1.0.0. This extension must not highlight future DTX 2 keywords until those features are implemented and released officially.
DTX Language Support does not include the DTXC compiler.
Installing this extension provides editor support only and does not make DTX programs executable.
Versions
| Item | Version |
|---|---|
| DTX Language | 1.0.0 |
| DTX by DTX Office | 1.0.0 |
Publisher And Author
| Item | Value |
|---|---|
| Publisher | DTX Office |
| Extension identifier | dtx-office.dtx-official-language |
| Author | IBRAHIM BOUILLET |
| Copyright holder | IBRAHIM BOUILLET |
| Copyright year | 2026 |
| License | Apache License 2.0 |
The Marketplace icon is provided through the extension manifest. The README does not embed the logo yet because there is currently no public HTTPS URL for the image. A README image can be added later when a stable public URL exists.
Features
- Registers
.dtxfiles as theDTXlanguage. - Provides TextMate syntax highlighting for DTX 1.0.0.
- Configures parentheses and double quotes for editor pairing.
- Provides snippets for valid DTX 1.0.0 statements.
- Adds DTX file icons for light and dark themes.
Installation
Install the packaged VSIX from Visual Studio Code:
Extensions: Install from VSIX...
This extension provides editor features only. Install DTXC separately if you need to compile DTX programs.
Recognized Syntax
DTX 1.0.0 recognizes:
- the
.dtxsource extension; - the reserved keyword
print; - alphabetic identifiers using
[A-Za-z]+; - unsigned decimal integers using
[0-9]+; - double-quoted strings without escapes;
- assignment with
=; - arithmetic operators
+,-,*,/; - parentheses
(and).
Examples
print = ("Hello from DTX")
result = (5 + 2) * 3
print = (result)
text = "Hello"
print = (text)
Snippets
| Snippet | Prefix |
|---|---|
| Print string | print-string |
| Print expression | print-expression |
| Assign integer | assign-integer |
| Assign string | assign-string |
| Arithmetic expression | arithmetic-expression |
Limitations
DTX is an early language in development with an official initial syntax version of 1.0.0. This extension does not provide:
- the DTXC compiler;
- an interpreter;
- run buttons;
- debugging;
- a language server;
- linting;
- formatting;
- telemetry;
- network requests.
DTX 1.0.0 does not include comments, functions, conditions, loops, booleans, arrays, objects, explicit types, imports, braces, brackets, or semicolons.
License
Licensed under the Apache License, Version 2.0. See LICENSE and NOTICE.