Skip to content

Code Element

github-actions[bot] edited this page Apr 14, 2026 · 3 revisions

Code Element

Demonstrates both read-only code display and editable code editor.

Features demonstrated:

  • Syntax highlighting with built-in Rust and JSON highlighters
  • Line numbers in the gutter
  • Editable code editor with Stateful incremental updates
  • Cursor, selection, clipboard (Cmd+C/X/V), undo/redo (Cmd+Z)
  • Word navigation (Cmd+Left/Right), select all (Cmd+A)
  • Vertical scrolling in the editor
<iframe src="../../examples/code_demo/index.html" width="100%" height="560" loading="lazy" style="border:1px solid #45475a;border-radius:8px;background:#181825;" title="Blinc code_demo example" ></iframe>

Tip: Some demos are best viewed in a full browser window. Click "Open in a new tab" below for the full experience.

Open in a new tab · View source on GitHub

Navigation

Getting Started

Mobile Development

Example Gallery

Web Development

Core Concepts

Animation

Components

Component Library (blinc_cn)

Widgets

Canvas Kit

Advanced

Architecture

Contributing

Clone this wiki locally