A modern document language for structured content generation
Transform .dlang files into rich output using a powerful language server, CLI, and browser-based editor.
Overview • Studio • Quick Start • VS Code • CLI
DocLang is a domain-specific language for creating structured documents with a modern authoring experience.
- ⚡ Langium-powered language infrastructure
- 🖥️ Browser-based editor (DocLang Studio)
- 🧩 VS Code extension with LSP support
- ⚙️ CLI tooling for automation
- ✅ Validation, diagnostics, and code intelligence
Write, validate, and render .dlang documents directly in your browser.
npm run devThe editor is available at:
http://localhost:20002
npm run langium:generate
npm run buildPackage the extension:
cd packages/extension
vsce package --allow-missing-repositoryInstall it:
code --install-extension ./vscode-doc-lang-0.0.1.vsixInstall globally:
cd packages/cli
npm linkGenerate output:
doc-lang generate examples/first-example.dlangRun without installation:
node packages/cli/bin/cli.js generate examples/first-example.dlangFor examples, also including source code, from which the .dlang files are derived, see the examples folder.
packages/
├── cli/
├── extension/
├── language/
└── web/
- Langium
- TypeScript
- Node.js
- Vite
- VS Code Language Server Protocol
