Skip to content

Releases: 3me3/code-file

v1.0.0

12 Dec 20:05
844d631

Choose a tag to compare

v1.0.0 — Initial Release

This release introduces <code-file>, a minimal Web Component for embedding real, file-like source code directly inside HTML pages.

<code-file> treats code as a first-class artifact, not a visual decoration.

Highlights

  • Custom Element (<code-file>)
  • Encapsulated rendering via Shadow DOM
  • Displays code as a discrete, scrollable file
  • Preserves authored whitespace exactly
  • Copy to clipboard
  • Download as a real file with inferred extension
  • Optional explicit filename
  • No dependencies
  • No build step
  • No global CSS leakage

Intended use

Use <code-file> when you want to publish actual source files inline—documentation, research notes, specifications, or examples—without hosting separate downloads or relying on external libraries.

This release establishes the stable v1 API.