Skip to content

Examples

Code examples showing how to use Kodemirror. Each example includes complete Kotlin snippets adapted from the upstream CodeMirror examples.

Getting started

Configuration

Working with content

Features

  • Autocompletion — Code completion dropdown
  • Linting — Diagnostics and error reporting
  • Gutters — Line numbers and custom gutter markers
  • Panels — UI strips above or below the editor
  • Tooltips — Floating UI anchored to document positions

Advanced

Complete sample

  • Sample Editor — A full working Compose Desktop application with language switching, theme selection, and Material Design integration

See also the API Reference for generated KDoc documentation of every module.