Plain-text document system

Natural text rules. Deterministic document processing.

Text2Doc turns human-readable plain text into a deterministic document model. The TEXT language carries the narrative and basic document structure, while SIDECAR adds richer semantic composition and THEME controls presentation.

TEXT — Write readable source

Narrative + basic document structure.

SIDECAR — Add semantic composition

Figures, tables, code blocks, injections, assets, outline, headers, and composition.

THEME — Control presentation

Templates and CSS determine final appearance independently of the source.

Text2Doc Web IDE showing TEXTv1.2 source, SIDECAR configuration, and rendered HTML preview
Text2Doc Web IDE Click to enlarge the screenshot. Use Launch WebAPP to open the live browser workflow.

How Text2Doc works

Text2Doc keeps the source readable: TEXT defines the document’s basic structure, SIDECAR adds semantic composition, and THEME controls presentation.

TEXT

Write readable source

TEXTv1.2 contains the narrative and natural document structure: titles, sections, paragraphs, blank lines, and lists. No HTML, Markdown, or inline styling is required.

SIDECAR

Add semantic composition

SIDECAR keeps richer document behavior separate from the narrative source: injections, figures, code blocks, tables, outline, header, assets, and render composition.

THEME

Control presentation

Templates and CSS define the final document appearance independently of the source. The renderer combines the validated layers into stable output.

1

Write

Create or edit the readable TEXT source and its project-side resources.

2

Validate

Parse the source and verify that the document follows the deterministic TEXT rules.

3

Build

Apply SIDECAR and THEME, then render the validated document into the final output.

Download Text2Doc

One native Text2Doc binary provides the command-line workflow, the private local Web IDE, and the project-aware Language Server Protocol. Use the same executable for interactive work, editor integration, scripting, automation, and CI.

One binary · multiple interfaces

CLI, Local Web IDE, and LSP are one Text2Doc tool

Run text2doc build, text2doc init, and the other command-line operations directly. Run text2doc serve to start the private local server and embedded WebAPP on 127.0.0.1:8080. Run text2doc lsp to expose project-aware authoring support over stdio. A temporary API key is generated for Local Web IDE sessions and expires when the process stops.

Text2Doc · Windows

x86_64 GNU

One native executable for CLI workflows and the private local Web IDE.

File: text2doc-v2026.9.12-1345-x86_64-pc-windows-gnu.zip
Download Text2Doc for Windows
Text2Doc · macOS

Apple Silicon

One native executable for CLI workflows and the private local Web IDE.

File: text2doc-v2026.9.12-1345-aarch64-apple-darwin.tar.gz
Download Text2Doc for macOS
Text2Doc · GNU/Linux

x86_64 musl

Portable native executable for CLI workflows and the private local Web IDE.

File: text2doc-v2026.9.12-1345-x86_64-unknown-linux-musl.tar.gz
Download Text2Doc for GNU/Linux
Visual Studio Code · optional thin client

Install the Text2Doc VSIX

The VSIX registers .t2d, adds lightweight syntax highlighting, and launches text2doc lsp. Parsing, validation, SIDECAR handling, and project intelligence remain inside the native Text2Doc binary.

Download Text2Doc VSIX · v2026.9.10-2340
Quick start
# install on Windows
Expand-Archive .\text2doc-v2026.9.12-1345-x86_64-pc-windows-gnu.zip -DestinationPath .

# install on macOS
tar -xzf text2doc-v2026.9.12-1345-aarch64-apple-darwin.tar.gz
xattr -d com.apple.quarantine text2doc

# install on GNU/Linux
tar -xzf text2doc-v2026.9.12-1345-x86_64-unknown-linux-musl.tar.gz

# CLI workflow
./text2doc init my_project
./text2doc build my_project

# private local Web IDE
./text2doc serve

# editor-neutral Language Server Protocol
./text2doc lsp

# optional VS Code client
code --install-extension text2doc-v2026.9.10-2340.vsix

# optional
./text2doc serve --port 8080
./text2doc serve --no-browser
Local Web IDE: text2doc serve starts the server on http://127.0.0.1:8080, opens the embedded WebAPP by default, and prints the temporary API key. On Windows use .\text2doc.exe; on macOS and GNU/Linux use ./text2doc.
LSP: configure any LSP-capable editor to launch text2doc lsp over stdio, or install the optional Text2Doc VSIX for Visual Studio Code.

See Text2Doc in action

Start with a simple TEXT document, explore SIDECAR composition, or see the rendered result.

Sample

TEXTv1.2 specification

Download the structured sample that defines the pure text rules.

Download sample
Sample

SIDECAR capability demo

See injections, assets, render composition, and richer document structures.

Download demo project
Output

Rendered example

Open the HTML demo to see how a clean source becomes a composed document.

View demo HTML

Readable source. Explicit semantics. Predictable rendering.

Text2Doc is designed for documents that should remain readable in source form and stable in rendered form.