TEMPLATE

Pastecraft — code paste desk

A classic paste service composition with line-numbered syntax styling, format controls and a recent-pastes sidebar.

LIVE PREVIEW Isolated & interactive
<!-- Original layout, SVG/CSS artwork and JavaScript © 2026 XXC Templates. MIT License.
Visual pattern references (original code, names and content; no affiliation):
Pastebin: https://pastebin.com/
A utility-oriented text editor with metadata controls and a secondary paste index.
Illustrative sample content and data; no real accounts, payments, reservations or messages. -->
<main>
  <header>
    <b>pastecraft<span>▧</span></b>
    <nav><a href="#editor">New paste</a><a href="#recent">Recent examples</a></nav>
  </header>
  <div class="paste-layout">
    <section>
      <h1>New paste</h1>
      <p class="lead">A small piece of code, ready for a second pair of eyes.</p>
      <label for="title"
        >Paste title<input id="title" maxlength="80" value="A tiny greeting function" /></label
      ><label for="source">Source code</label
      ><textarea id="source" spellcheck="false" maxlength="12000">
function greet(name) {
  return "Hello, " + name;
}

greet("curious human");</textarea>
      <div class="controls">
        <label
          >Syntax<select id="syntax">
            <option>JavaScript</option>
            <option>Plain text</option>
          </select></label
        ><button id="change">Render preview</button>
      </div>
      <section id="rendered" hidden>
        <h2 id="preview-title"></h2>
        <pre id="code"></pre>
      </section>
    </section>
    <aside id="recent">
      <h2>PUBLIC EXAMPLES</h2>
      <div><b>CSS reset notes</b><span>CSS / 4 min</span></div>
      <div><b>Small fetch wrapper</b><span>JavaScript / 12 min</span></div>
      <div><b>Morning checklist</b><span>Text / 28 min</span></div>
      <div><b>Grid layout sketch</b><span>CSS / 1 hour</span></div>
      <p>These are fictional examples. The editor preview is local and does not publish a paste.</p>
    </aside>
  </div>
  <output data-status aria-live="polite"></output>
  <footer class="demo-note">Fictional brand · local interface demo · no information is sent</footer>
</main>
Revision history · 1 versions
v12026-10-05 18:26:30 UTC

Keep the ideas flowing.

Explore the library
HELP KEEP THE WORKSHOP USEFUL

Report this creation

ONE QUICK CHECK

Continue?