twinkleplop
docs / welcome.md

twinkleplop

A syntax highlighter and code authoring toolkit. Small, fast, customisable. plop it in and twinkle.

# try it live § 03

Edit the source and watch it re-twinkle in real-time. This is a scaled-down embed of the lab where you can every language and theme in the browser.

mini-lab · editable github-dark · typescript
 
twinkled in 0.000ms 0 tokens · 0 lines

# hello, twinkle § 04

Get started in a few lines. Drop this in a browser or Node:

first-twinkle.ts typescript copy
import { language } from "@twinkleplop/typescript";
import "@twinkleplop/theme-github";

const typescript = language();
const html = typescript("1 + 2");

tweaks

mode
density
nav style
crt scanlines