drvold35 downloadsRender Fountain screenplay markup in fountain code blocks.
Write screenplay scenes right inside your Obsidian notes and see them formatted like a real script.
Fountain Codeblock turns any fountain code block into a properly laid out screenplay page, with scene headings, centered character names, indented dialogue and right-aligned transitions. It works in both Reading view and Live Preview, on desktop and mobile.
It's useful when you want to:
Type three backticks followed by fountain, write your scene, and close the block:
```fountain
INT. LIGHTHOUSE - NIGHT
Rain hammers the windows. MARA (40s) climbs the spiral stairs, lantern in hand.
MARA
(out of breath)
Every single step. Every single night.
JONAS (O.S.)
You could always take the elevator.
MARA
We don't *have* an elevator.
CUT TO:
```
Switch to Live Preview or Reading view, and the block is rendered as a screenplay page. Click into the block (or use Source mode) to edit the text again.
Fountain is plain text that looks like a screenplay, so most of it formats itself. The essentials:
| What you want | What you type |
|---|---|
| Scene heading | A line starting with INT., EXT., EST. or INT./EXT., e.g. EXT. BEACH - DAY |
| Force a scene heading | Start the line with a period: .FLASHBACK |
| Scene number | Add it at the end: INT. HOUSE - DAY #12# |
| Action | Any ordinary paragraph |
| Character | A line in ALL CAPS, followed by dialogue on the next line |
| Force a character name | Start the line with @: @McCLANE |
| Parenthetical | A line in (parentheses) under the character name |
| Dual dialogue | Add ^ after the second character name: JONAS ^ |
| Transition | An uppercase line ending in TO:, or start a line with > |
| Centered text | Wrap it in > … <: > THE END < |
| Lyrics | Start the line with ~ |
| Emphasis | *italic*, **bold**, ***bold italic***, _underline_ |
| Page break | A line with === |
| Title page | Title:, Credit:, Author:, Draft date:, Contact: … at the very top of the block, followed by a blank line |
| Section (outline) | Start the line with #, ##, ### |
| Synopsis (outline) | Start the line with = |
| Note to self | [[like this]], inline or on its own line |
| Hide text completely | Wrap it in /* … */ |
See the full Fountain syntax for every detail.
Open Settings → Fountain Codeblock to choose what gets shown. Changes apply right away to notes that are already open.
| Setting | Default | What it does |
|---|---|---|
| Show title page | On | Shows the title, credit, author and contact block at the top |
| Show scene numbers | On | Shows scene numbers like #12# on both sides of the scene heading |
| Show sections | On | Shows # sections as faint outline headings |
| Show synopses | Off | Shows = synopsis lines in muted italics |
| Show notes | Off | Shows [[notes]] as highlighted text instead of hiding them |
| Page style | On | Puts the screenplay on a paper-like page. Turn it off to blend into your note |
Fountain Codeblock is not in Obsidian's community plugin directory yet. You can install it with BRAT or by hand.
TVolden/obsidian-fountain-codeblock and confirm.main.js, manifest.json and styles.css from the latest release..obsidian/plugins/fountain-codeblock/ and put the three files in it.To update, download the new files and replace the old ones.
```fountain and that the plugin is enabled. In Source mode, Obsidian always shows the raw text.@ to force it.fountain code blocks inside Markdown notes, so it doesn't interfere with plugins that open whole .fountain files.Found a bug or have an idea? Please open an issue. Pasting the Fountain text that causes the problem helps a lot.
Want to build the plugin yourself or contribute? See CONTRIBUTING.md.