Screenplay
Type a script as plain lines and read it in proper script layout: scenes, cues, dialogue and transitions.
What it shows
Lay out a script with line rules, the way a screenwriter types it.
What you learn
A rule for every line, more exact rules that win by their start or end, a cue whose indented lines nest under it, writer's notes, a block that never prints, a page break, a page font.
Try this
- Change
set font Courier Primeto another font, and the whole script follows.
INT. CORNER BAKERY - NIGHT
Flour hangs in the light of one bare bulb. ROSA (60s) works dough on a steel bench, with the rhythm of someone who has done it for forty years. Hold on her hands before we see her face.
The back door opens. DANI (19), hood up, earbuds in, stops in the doorway.
ROSA
(without looking up)
You're late.
DANI
It's four. You said four.
ROSA
I said before four.
She slides a lump of dough across the bench to him. He looks at it.
DANI
I've never done this.
ROSA
Neither had your grandfather. Hands flat. Push, fold, turn.
He tries. The dough sticks to everything. Rosa watches. Then, without a word, she dusts his side of the bench with flour.
CUT TO:
INT. CORNER BAKERY, SHOP - DAWN
The first loaves sit in the window. Outside, a queue has already formed. Dani, floured to the elbows, turns the sign to OPEN.
THE END
HOW IT'S MADE
Every line is action unless its start says otherwise. INT. and EXT. start a scene, an at sign starts a character's cue, and the lines indented under a cue are what they say.
A line in round brackets says how a line is spoken. A line that ends in TO: is a transition, set on the right, and a line between > and < is centred.
Notes for the writer sit in double square brackets. A block between a line with a slash and a star and a line with a star and a slash never prints, and === breaks the page.
TRY IT YOURSELF
1. Change INT. CORNER BAKERY, SHOP to EXT. CORNER BAKERY. It is still a scene heading.
2. Add a line in round brackets under @DANI, indented like his dialogue. It becomes his direction.
3. Change CUT TO: to DISSOLVE TO: and it stays on the right.
4. Change set font Courier Prime to set font Literata in the rules block. Every line changes typeface.
Next: Screenplay in the examples is a whole short script, title page and all.
~~~ selfscribe
# Screenplay: a Fountain-like syntax for scripts. Use it with: use screenplay
# Lesson: Lay out a script with line rules, the way a screenwriter types it.
# You learn: a rule for every line, more exact rules that win by their start or end, a cue whose indented lines nest under it, writer's notes, a block that never prints, a page break, a page font.
# Try this: change `set font Courier Prime` to another font, and the whole script follows.
# summary: Type a script as plain lines and read it in proper script layout: scenes, cues, dialogue and transitions.
# category: syntax
set title Screenplay
# ---- The page: blank lines kept as typed, and a typewriter font ------------------------
set blanklines keep
set font Courier Prime
# ---- Colours ---------------------------------------------------------------------------
palette note #e8a100 dark #ffd43b
# ---- Shared looks: every script line, and a scene heading -------------------------------
# Every script line is 15px type in the page's font, Courier Prime.
class script { font: 15px/1.5 var(--doc-font, "Courier New", Courier, monospace) }
class scene { font-weight: 700; text-transform: uppercase; margin-top: 0.6em; padding: 0.15em 0.5em; border-radius: 3px; background: color-mix(in srgb, currentColor 7%, transparent) }
# ---- Any line: action. The rules after it win when a line starts or ends a certain way --
line _ -> div.script.action { text-indent: 0; text-transform: none; margin: 0 } as sp-action
# ---- INT. or EXT. at the start of a line: a scene heading -------------------------------
line INT. _ -> div.script.scene keep as sp-scene
line EXT. _ -> div.script.scene keep as sp-scene-ext
# ---- @NAME: a character's cue; the indented lines under it are what they say -----------
# The cue sits about two fifths of the way across; the speech runs in a narrower column.
line @_ -> div.script.character nest { text-transform: uppercase; margin: 0.5em 20% 0 17%; text-indent: 33% } as sp-character
# ---- (to herself) on its own line: how a line is said ----------------------------------
line (_) -> div.script.paren keep { font-style: italic; text-transform: none; text-indent: 0; margin-left: 17%; opacity: 0.8 } as sp-paren
# ---- A line ending in TO: is a transition on the right; >TEXT< is centred ---------------
line _ TO: -> div.script.transition keep { text-align: right; text-transform: uppercase } as sp-transition
line >_< -> div.script.centered { text-align: center; letter-spacing: 0.08em } as sp-centered
# ---- === on its own line: a page break ---------------------------------------------------
line === -> hr { border: 0; border-top: 1px dashed color-mix(in srgb, currentColor 30%, transparent); margin: 1.5em 0 } as sp-break
# ---- **stress** and *italic* inside a line --------------------------------------------
inline **_** -> strong
inline *_* -> em
# ---- [[A note]] for the writer, in a yellow tag; /* … */ lines never print --------------
inline [[_]] -> span.note { font: 12px/1.4 var(--doc-font-ui); padding: 0.1em 0.45em; border-radius: 4px; background: color-mix(in srgb, var(--note) 24%, transparent) } as sp-note
block /* ... */ -> hidden verbatim
~~~
INT. CORNER BAKERY - NIGHT
Flour hangs in the light of one bare bulb. ROSA (60s) works dough on a steel bench, with the rhythm of someone who has done it for forty years. [[Hold on her hands before we see her face.]]
The back door opens. DANI (19), hood up, earbuds in, stops in the doorway.
@ROSA
(without looking up)
You're late.
@DANI
It's four. You said four.
@ROSA
I said *before* four.
She slides a lump of dough across the bench to him. He looks at it.
@DANI
I've never done this.
@ROSA
Neither had your grandfather. Hands flat. Push, fold, **turn**.
He tries. The dough sticks to everything. Rosa watches. Then, without a word, she dusts his side of the bench with flour.
/*
Does Rosa smile here? Ask Lena before Thursday's read-through.
*/
CUT TO:
INT. CORNER BAKERY, SHOP - DAWN
The first loaves sit in the window. Outside, a queue has already formed. Dani, floured to the elbows, turns the sign to OPEN.
>THE END<
===
>HOW IT'S MADE<
Every line is action unless its start says otherwise. INT. and EXT. start a scene, an at sign starts a character's cue, and the lines indented under a cue are what they say.
A line in round brackets says how a line is spoken. A line that ends in TO: is a transition, set on the right, and a line between > and < is centred.
Notes for the writer sit in double square brackets. A block between a line with a slash and a star and a line with a star and a slash never prints, and === breaks the page.
>TRY IT YOURSELF<
1. Change INT. CORNER BAKERY, SHOP to EXT. CORNER BAKERY. It is still a scene heading.
2. Add a line in round brackets under @DANI, indented like his dialogue. It becomes his direction.
3. Change CUT TO: to DISSOLVE TO: and it stays on the right.
4. Change set font Courier Prime to set font Literata in the rules block. Every line changes typeface.
Next: *Screenplay* in the examples is a whole short script, title page and all.