# <jinn-codemirror>: code editor webcomponent

A plain javascript web component based on codemirror. It adds support for toolbars, XML-specific shortcuts, linting for XML and XQuery, and helpers for the transcription of epigraphic documents.

## EpiDoc Editor

Combines an XML Editor with an option to import and convert a transcription following Leiden conventions. Multiple variants of Leiden are supported, with Leiden+ providing the best coverage as it is backed by a syntax tree. The other two Leiden modes use heuristics and are more prone to produce invalid markup.

The toolbar and XML snippets are fully configurable in HTML.

### Leiden+ Editor

### EpiDoc XML Editor

## XML Editor

An XML editor intended for entering a fragment of TEI XML. This editor instance is configured to wrap the content into a TEI div element. Auto-complete will only suggest elements allowed below div.

### XML Output

## Other syntaxes