DITA EditorDITA Editor is a free, local-first visual editor for DITA topics in desktop Visual Studio Code. It is a preview: keep source control enabled and review important changes before committing them. Scope and source safetyThe editor opens DITA Editor uses a concrete syntax tree rather than reserializing the document. Opening, viewing, or making no effective change leaves the source byte-for-byte identical. A visual edit is applied as the smallest practical replacement through a normal Visual Studio Code workspace edit, preserving untouched whitespace, XML declarations, doctypes, comments, entities, and unsupported structures verbatim. Only local
Install and use
The main surfaces are available from the editor toolbar and the Visual Editor controls. Visual EditorVisual Editor renders supported topic content as an editable canvas while retaining the original XML as the source of truth. It provides text and structure editing, keyboard navigation, find and replace, images, and table operations. The grouped toolbar also exposes Save, Copy as DITA, Paste before/after, Delete, and Move earlier/later. Arrow keys wrap through toolbar controls; unavailable controls remain focusable and explain why they cannot run. Unsupported content remains in the source and is preserved when edits do not target it. StylesStyles uses one repository-owned author stylesheet for project presentation without changing the built-in editor. If the file is missing, the panel offers explicit initialization and adds no built-in presets. Color fields combine a native picker, editable CSS value, presets, and a Default action; authored values such as CSS variables and Review ChangesRun DITA Editor: Review Changes (Track Changes), or open an eligible Previous and Next move through rendered changes and update the current position. They work in single-file and multi-file review, and standalone exported review HTML includes self-contained client-side navigation so it continues to work when opened outside Visual Studio Code. Revert to Earlier is available beside an eligible structural change only when the newer side is the current working copy. It restores that selected change from the Earlier version; it does not replace the whole file, run Privacy and Restricted ModeParsing, editing, styling, taxonomy loading, review rendering, and file writes happen locally. DITA Editor has no telemetry, does not upload document content, and makes no runtime network requests. Links you choose to open and normal Visual Studio Code, Git, or Marketplace behavior are outside the extension. In Restricted Mode, topics remain viewable, but the workspace-provided author stylesheet, deprecated content stylesheet fallbacks, and taxonomy configuration are disabled. No author stylesheet can be initialized or changed. Trust a folder only when you trust its files. Relationship to DitaCraft and DITA-OTDitaCraft is a separate, complementary Visual Studio Code extension. It provides DITA language tooling, map support, validation, keyspace features, and publishing workflows. Install and configure it independently when those capabilities are needed; DITA Editor has no direct runtime integration with DitaCraft. DITA Open Toolkit (DITA-OT) is an external publishing engine. DITA Editor does not execute or bundle the toolkit. Its renderer emits the DITA-OT 4.2.1 HTML CSS class contract so familiar selectors can style the Visual Editor and Review Changes output. That class-name compatibility is a presentation contract, not DITA-OT validation, transformation, or publishing. ArchitectureDITA Editor has two runtimes:
Pure TypeScript modules keep the core behavior testable without Visual Studio Code: ContributingUse Node.js
There is no development server; do not run one. For interactive development, build the extension and launch an Extension Development Host against a separate local DITA workspace:
For the rebuild loop, run See also Taxonomy, Security, and Support. Licensed under Apache-2.0. |