Commentable HTML tutorial: Planning a Community Garden
Commentable HTML turns any report, plan, or document into an interactive review surface you can hand straight back to an AI agent. Open the file in your browser, leave inline comments on anything - prose, tables, code, KQL, charts, Mermaid diagrams, diffs, or images - then click Copy all and paste the batch back to the agent to address. There is no app to install, no account, and no server: the whole review layer travels inside the single HTML file, and your comments persist in the browser as you iterate.
This walkthrough uses examples/report-community-garden.html as a running example. It is a single self-contained file with prose, tables, a KQL query, a Chart.js chart, images, Mermaid diagrams, and a code-review diff, so it lets you try every kind of comment in one place.
Were you sent a commentable HTML file to review? You do not need an agent or an account. Select any text, click Add Comment, and when you are done click Copy all (to hand your notes to an agent) or Export as Portable (to send the file back with your comments baked in). The steps below show every kind of thing you can comment on.
The review workflow
The review loop has four steps:
- Generate. Ask an AI chat or terminal agent to produce your report or document as a commentable HTML file.
- Review. Open the file in your browser and leave inline comments anywhere: text, tables, code, KQL, charts, diagrams, diffs, or images.
- Hand back. Click Copy all and paste the bundle back to the agent (or export the file and send it along).
- Refresh and repeat. The agent edits the source and marks your comments handled; reload the updated file and the addressed comments disappear. Repeat until none remain.
The rest of this tutorial walks through step 2 in detail: every kind of thing you can comment on, and how to hand the batch back.
1. Open the example
- Open
examples/report-community-garden.htmlin a modern browser. - If the comments panel is not already open, click Comments in the floating toolbar (upper right). Once the panel is open the toolbar is hidden; close the panel with the Hide button at the top of the panel.
- Scroll through the plan once to see its sections and the in-page Contents list.

2. Read the document-type bubble and version
- In the sidebar header, look at the document-type bubble.
- It reads Portable (green) when the file is safe to share as-is: everything is embedded and every comment is baked in. It reads Offline when the file is also ready for a zero-network handoff: any Mermaid diagrams or charts keep working from inlined vendored runtimes and remote loaders are stripped. It reads Not portable (orange) when the file still references companion assets or has comments that are not embedded yet. Hover the bubble for the exact reason and how to make it shareable.
- Next to the bubble, the version indicator shows
v<x.y.z>, telling you which Commentable HTML runtime produced the file.
3. Comment on prose
- Go to Overview.
- Select the phrase
underused corner lot. - Click Add Comment in the small popup below the selection.
- Type a note, then click Save or press Ctrl+Enter.
- The selected text is highlighted and a card appears in the sidebar.


4. Comment on a table cell
- Go to Garden Layout.
- In the bed allocation table, select the text
Use a removable trellis. - Click Add Comment and save a note. The card records which table cell you commented on, so the agent can find it later.
5. Comment on the KQL block
- Go to Planting Schedule.
- In the KQL card, select a short span inside the query.
- Click Add Comment and save a note. The copied bundle preserves the selected KQL as a fenced code quote.
- The Run in Azure Data Explorer link opens the same query in the Azure Data Explorer web UI, and the cluster name copies to your clipboard when you click it.

6. Comment on the chart
- Stay in Planting Schedule and find the watering-needs chart.
- Move the mouse over the bars to read the tooltip.
- To comment on the chart, hover it and click Add Comment at its corner (the same way you comment on an image), or select text in the chart caption.
- Save a note. A commented chart gets a highlighted outline so you can see at a glance which figures have feedback.

7. Comment on an image
- Go to Site Selection or Garden Layout.
- Hover an image (or focus it and press Enter).
- Click the floating Add Comment button at the image corner and save a note. The comment is anchored to the whole image and quotes its alt text.
8. Comment on a Mermaid diagram
Mermaid diagrams render when you open the file in a modern browser. If one does not render, its source stays readable as plain text.
- Go to Risks and Mitigations and find the planting decision flowchart.
- Hover a node such as
Frost forecast in next 72 hours?. - Click the floating Add Comment button on the node and save a note. The node gets a colored ring and the comment attaches to that node, so it survives edits to the rest of the diagram.
- You can also comment on gantt bars, sequence-diagram messages, and subgraphs the same way, or hover an empty part of a diagram to comment on the whole thing.
9. Comment on a diff line
- In Risks and Mitigations, find the
watering_schedule.pydiff. - Hover the added line
+ if rainfall_mm >= 8:and click the floating Add Comment button to comment on the whole line. - Or select a substring within a single diff line and click Add Comment to comment on only that region.
- Use the diff header button to switch between views: it reads To inline view while side-by-side and To side-by-side view while inline. Your comments stay attached either way.

10. Work a review checklist
Some reports embed interactive review checklists - grouped items whose state you cycle as you verify each one. The community garden plan does not use them, so this step uses examples/report-checklist.html, which is built around a release-readiness checklist.
- Open
examples/report-checklist.html. - Click an item's box to cycle its state: blank, done (green check), failed (red cross), or unresolved (amber question). A group heading rolls up the state of its items, and clicking it propagates a state to every item beneath it.
- Your changes are saved with the document and surface as a checklist card in the sidebar (with jump and reset), so you can hand the updated states back to the agent. You can also select an item's text and click Add Comment to leave a note on that specific check. The toolbar count badge counts these checklist changes and any review-note edits too, alongside open comment threads, so it reflects everything still needing attention.

11. Edit a review note
Notes are editable free-text fields authors embed for context, verdicts, or reviewer input. Each starts from an authored baseline you can edit in place. The garden plan has none, so this step uses examples/report-notes.html.
- Open
examples/report-notes.html. - Click into a note and edit its text; use its single/multi-line toggle to switch the field height for longer entries.
- Your changes are saved with the document and appear as a note card in the sidebar (with jump and reset), so the agent can cement them back into the source. You can also select the note text and click Add Comment to leave a tracked comment on it.

12. Format your comment
Comment notes support lightweight rich text (WhatsApp / Office style), so you can emphasize a point or drop in a link. Type the markers directly, or select text in the composer and use the formatting toolbar (or a keyboard shortcut).
- Select some text and open the composer. A formatting toolbar sits above the note field: bold, italic, underline, strikethrough, inline code, link, and bullet list.
- Wrap the current selection by clicking a toolbar button or pressing a shortcut:
Ctrl/Cmd+Bfor**bold**,Ctrl/Cmd+Ifor*italic*,Ctrl/Cmd+Ufor__underline__, andCtrl/Cmd+Kto turn the selection into a link. Start a line with-for a bullet list, wrap text in backticks for inline code, and use~~text~~for strikethrough. - Type or paste a bare
http(s)://address and it becomes clickable on its own. Onlyhttp,https, andmailtolinks are made clickable; anything else stays plain text.

Once saved, the note renders its formatting in the sidebar card and the inline popover, while the stored note keeps the exact text you typed - so Copy all still hands the agent the raw markers.

13. Track review progress per section
Every section heading carries a small review badge so you can mark sections as you finish them and see at a glance what is left.
- Hover a section heading to reveal its badge, then click the badge to mark that section Reviewed. The badge turns green and stays visible.
- A section you have not touched shows the default unreviewed state (no marker). The badge also reflects two more states automatically: a section you have commented on shows a Commented badge, and one whose content changed since your last visit shows a Changed badge.
- Use these badges together with the section filter in the side navigation (next step) to focus on unreviewed or changed sections.

14. Navigate, search, and filter sections
- Widen the browser window to at least 1400px. A generated section navigation appears on the left (separate from the author Contents list near the top) and highlights the section you are reading.
- The nav has a search box at the top: type to filter the section list down to matching headings.
- Below it, once you have marked a section reviewed or added a comment, a review-status filter (All / Reviewed / Unreviewed / Commented / Changed) appears and narrows the list to sections in that state, and a single-character status badge next to each entry shows its review state (R reviewed, C commented, ! changed, hollow unreviewed). Until you start reviewing, these controls stay out of the way. Use them with the per-section badges from the previous step to jump straight to what still needs attention.
- The nav buttons let you Expand All or Collapse All sections at once and Scroll to Top or Scroll to Bottom of the document. In the document itself, each section title also has a small caret to its left: click the caret to collapse or expand that one section (clicking a collapsed section's title expands it again).

15. Search and sort your comments
Once you have several comments, the sidebar helps you find and order them.
- Click the Search button in the header ribbon to reveal the search field (it is hidden by default); type to filter the list to comments whose note matches your query, and the field shows how many of the total are shown. Click Search again to hide it, or the clear (X) button to empty it.
- Use the Sort button in the header ribbon to cycle the order: document position, then newest-first, then oldest-first, then back to document order; its icon and tooltip reflect the current state.

16. Set your name and reply in threads
When you pass a document back and forth with someone else, attribute each comment and hold a conversation in threads.
- In the comments panel, the Commenting as line shows the name attached to your comments. Click set name (or change) to enter a display name. It is remembered in this browser and applies to your future comments only - it never rewrites comments you already made. (An author who generated the file for you can pre-fill it with
data-cm-author.) - Each attributed comment and reply shows a colored author pill at the start of its note, so it is clear who wrote what.
- To continue a conversation on a comment, click Reply on its card, type your response, and save. Replies stack under the original comment, oldest first, forming a thread.
- Deleting the original comment removes the whole thread; deleting a single reply removes only that reply.
- Copy all, Markdown export, and the print appendix keep threads together: each is emitted as an initial comment followed by its labelled replies, so the agent reads the refinements in context.

17. Hand your comments back
- Click Copy all in the toolbar or the sidebar.
- This copies every comment as a Markdown bundle: where each comment is, the quoted text, and your note, ending with a machine-readable handled-ids line.
- Paste the bundle back to the agent. It addresses each comment and marks it handled in the same file.

18. Export, manage storage, and clear
The comments panel header gathers the ways to save, share, and manage the review.
- Click Export in the header to open the file-format menu.
- Choose an option: Portable bakes your comments into a single self-contained copy, Offline makes a zero-network copy after diagrams and charts have rendered, Markdown writes the comment bundle to a
.mdfile, Plain HTML hands over a clean copy with the commenting layer removed, and PDF opens your browser's print dialog to save a PDF or print. - The data-management actions live in the separate More menu in the ribbon. Manage storage opens a window with a pie-chart breakdown of how your browser storage is used - This document, Other commentable-html documents, Other site data, and the Free headroom - above a per-document table whose Share column shows each document's percentage of commentable-html storage. Expand a row's Show comments to browse or delete individual comments, or delete another document's data to free space. Nothing is ever uploaded; this only manages your browser's local storage.
- The More menu also holds Clear all comments, which removes every comment (after a confirmation) so you can start the review over.

19. Refresh and repeat
Reload the file the agent hands back. Comments it marked handled are pruned automatically, so only open items remain. Repeat the loop until the panel is empty.
To share the review with another person instead, use the export menu's Portable action to bake the comments into a single self-contained copy, or Plain HTML to hand over a clean copy with the commenting layer removed.
Use Export Offline for a zero-network handoff after Mermaid diagrams and charts have rendered in the browser. It starts from the Portable export, strips remote loaders, conditionally inlines vendored Mermaid / Chart.js, and reopens with the Offline badge while keeping live diagrams and chart tooltips.
20. Review a board document
Not every commentable file is a prose report. A board document (kind: board) renders as columns of cards - handy for triaging incidents, tickets, or tasks. The examples/report-triage.html report is one.
- Open
examples/report-triage.html. - Read the cards across the columns, then select any card text and click Add Comment to leave a note, just as you would in a prose report.

Dark theme
The layer follows your browser or OS theme and stays readable in both. Everything above works identically in dark mode.

Help and About
Commentable HTML has a built-in reference for every control, gesture, and keyboard shortcut. Open it whenever you want the full picture.
- Click Help in the comments panel header (or Help & About in the collapsed toolbar's
...menu). - The first topic is the review workflow above; the rest cover every control, gesture, keyboard shortcut, the document-type bubble, exports, and the section menu. Use the search box to jump to an answer.
- For faster work, open the Tips and shortcuts topic: right-click to comment, re-select the same text to reopen its comment, sort back to document order, toggle diff syntax, and the keyboard shortcuts.
- Close it with the X button, Escape, or by clicking the backdrop.
