SelfscribeDownloadOpen the app

Tracked changes

Suggest edits and leave comments in plain text, then accept or reject them.

Document · Simple · uses markup

Edit it in the playgroundRead the file

What it shows

Mark up changes and comments in plain text, the way an editor's red pen does.

What you learn

A strip cut into parts, inline rules between two marks, a rule with two slots, a slot written into an attribute, colours from a palette.

Try this

  • Wrap a few words in {++ and ++} to mark them as added, or in {-- and --} to cut them.
  • Change cut in the palette to #e8590c, and every cut on the page turns orange.
examples/review-marks.self · 91 lines
~~~ selfscribe
# Lesson: Mark up changes and comments in plain text, the way an editor's red pen does.
# You learn: a strip cut into parts, inline rules between two marks, a rule with two slots, a slot written into an attribute, colours from a palette.
# Try this: wrap a few words in {++ and ++} to mark them as added, or in {-- and --} to cut them.
# Try this: change `cut` in the palette to #e8590c, and every cut on the page turns orange.
# summary: Suggest edits and leave comments in plain text, then accept or reject them.
# category: writing
# tags: document, simple, work, creative
# uses: markup
use markdown
set title Tracked changes
set font Literata

# ---- Colours, each with its shade for dark pages -------------------------------------------
palette
  added  #2b7a3b  dark #69db7c
  cut    #c92a2a  dark #ff8787
  swap   #1c64d8  dark #74a7ff
  note   #6d3fc4  dark #d0bfff
  mark   #f59f00
  line   color-mix(in srgb, currentColor 12%, transparent)

# ---- "review a | b | c": the strip at the top that says where the review stands ------------
line   review _         -> div.review   split "|" span.rv-item  { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4em; margin: 0 0 2.2em; padding: 0.6em 0.7em; border-radius: 12px; border: 1px solid var(--line); font: 500 0.78em/1 var(--doc-font-ui) }  as review
class  rv-item  { padding: 0.45em 0.7em; border-radius: 999px; background: color-mix(in srgb, currentColor 6%, transparent) }
class  rv-item:first-child  { background: color-mix(in srgb, var(--mark) 24%, transparent); font-weight: 700 }
# ---- "by …" under the title: who wrote it, where and when ------------------------------------
line   by _             -> div.byline   { margin: -0.1em 0 1.7em; font: 0.85em/1.4 var(--doc-font-ui); opacity: 0.65 }  as byline

# ---- "{++new words++}": an addition, in green ----------------------------------------------
inline {++_++}          -> ins.add      { text-decoration: none; background: color-mix(in srgb, var(--added) 18%, transparent); color: var(--added); border-radius: 3px; padding: 0 0.15em }  as cm-add
# ---- "{--old words--}": a cut, struck through in red ----------------------------------------
inline {--_--}          -> del.cut      { background: color-mix(in srgb, var(--cut) 12%, transparent); color: var(--cut); text-decoration-thickness: 2px; border-radius: 3px; padding: 0 0.15em }  as cm-cut
# ---- "{~~old~>new~~}": new words in blue, the old ones shown when you hover -----------------
# Two slots: _1 is the old text, kept in the title for hovering, and _2 the new text shown.
inline {~~_~>_~~}       -> ins.swap     title="was: _1" _2  { text-decoration: none; background: color-mix(in srgb, var(--swap) 15%, transparent); border-bottom: 2px solid var(--swap); border-radius: 3px 3px 0 0; padding: 0 0.15em; cursor: help }  as cm-swap
# ---- "{==words==}": worth a second look, in yellow ------------------------------------------
inline {==_==}          -> mark.hl      { background: color-mix(in srgb, var(--mark) 36%, transparent); border-radius: 3px; padding: 0 0.1em }  as cm-mark
# ---- "{>>a remark<<}": a comment, in a purple bubble ----------------------------------------
# A bubble that runs onto a second line keeps its rounded ends on both pieces.
inline {>>_<<}          -> span.note    { margin: 0 0.25em; padding: 0.2em 0.6em; border-radius: 10px 10px 10px 2px; background: color-mix(in srgb, var(--note) 13%, transparent); color: var(--note); font: 500 0.74em/1.5 var(--doc-font-ui); vertical-align: 0.15em; box-decoration-break: clone; -webkit-box-decoration-break: clone }  as cm-note

# ---- "@Name:" inside a comment: who said it, in bold ----------------------------------------
# bound: an @ in the middle of a word, as in an email address, is left alone.
inline @_:              -> strong.who   bound  { font-weight: 700 }  as cm-who
class  who::after  { content: ":" }
~~~
review 7 changes waiting | Sam Okoro, editor | Jo Brennan, workshop | Publish on Friday 4 December

# Get your bike ready for winter in twenty minutes

by Jo Brennan, Kestrel Cycles workshop · 26 November 2026 · 4 min read

Winter is hard on a bike. Salt, grit and wet roads {~~can really do a number on~>wear out~~} chains, brakes and cables {--quite quickly--}, and most of the bikes we see in January {~~could have been saved by~>needed nothing more than~~} twenty minutes of care in November.{>>@Sam: good opening. Can we put a number on "most"?<<}{>>@Jo: seven in ten, from our job sheets.<<}

## Clean the chain

Wipe the chain with a rag, then run it through a degreaser. {++Do this every two weeks once the roads are salted.++} Dry it {--properly--} before you oil it, or the oil will not stick.

## Use a real chain oil

{==WD-40 is not a lubricant.==}{>>@Sam: true, but people will argue. Keep it?<<}{>>@Jo: keep it. We are asked every week.<<} Use a wet oil in winter: it lasts longer in the rain. Put one drop on each roller, turn the pedals for a minute, then wipe off the extra.

## Check the brakes

Squeeze each lever hard. If it touches the handlebar, the cable needs tightening. Then look at the pads: {~~if there's not much left on them~>if the grooves have worn away~~}, replace them before the first wet commute.

## Be seen

{++Check your lights before the clocks go back. A front light of 400 lumens is enough for unlit lanes.++}{>>@Sam: we sell these. Link to the shop page?<<} Fit a rear light that flashes, and keep a spare set of batteries in your bag.

If you would rather we did it, bring the bike in: a winter service costs £45 and takes a day.

---

## How it's made

Five pairs of marks are the whole red pen. `{++ ++}` adds, `{-- --}` cuts, `{~~old~>new~~}` replaces, `{== ==}` highlights and `{>> <<}` is a comment. Each is an inline rule with its own colour from the palette.

The replacement has two slots. The rule writes the old words into the `title` attribute, so hovering a blue change shows what it replaces. A comment that starts with `@Sam:` is signed in bold.

In any other editor it is still readable text. To accept a change, delete its marks and keep the words you want.

## Try it yourself

1. Wrap "or the oil will not stick" in `{--` and `--}`. It turns red and is struck through.
2. Add `{>>@Lu: mudguards too?<<}` at the end of "Be seen". A new bubble appears, signed by Lu.
3. Accept the first change: replace `{~~can really do a number on~>wear out~~}` with `wear out`. The blue goes and plain text is left.
4. Change the strip's first part to `6 changes waiting`. The strip says so.

Next: *Contract that checks itself* colours the duties in a draft; *Meeting notes* picks out decisions and actions.