Publié
How Margina Handles Highlights — And Why They Live With the Book
A highlight isn't a mark on a page — it's a record that points at one. Here's why Margina keeps every highlight bound to the exact document it came from, and what that means when you rename, replace, or export a file.
Quick answer
A highlight in Margina lives with the book because it isn't a mark on the page — it's a small record that points at one. Pull it away from the document it came from, and it stops meaning anything: there's no passage left to point at. That's the same reasoning behind owning your books as files, not apps — the value sits in the relationship between the thing and where it sits, not in the thing floating on its own. The alternative, a flat list of quotes with no source attached, is just a list of orphaned sentences.
Step-by-step
What a highlight actually is under the hood
When you highlight a passage in Margina, the app doesn't take a screenshot or copy the text into a separate note. Instead it creates a small record that points at a specific span inside that specific document — closer to a sticky tab than a photocopy. This is the same idea behind the W3C Web Annotation Data Model, which describes annotations as resources that reference a target rather than duplicating it: the highlight and the passage stay two separate things, linked.
How the pointer keeps finding its passage
A page number isn't a reliable anchor. Reflow a PDF, change the font size, or open the same book on a different screen, and the numbers shift under you. The EPUB Annotations Use Cases and Requirements work through exactly this problem: annotations need a way to relocate their target even after the underlying document has changed shape. Margina anchors a highlight to the text itself, not to wherever that text happened to land on a given page, so it can still find the right passage after you resize, rotate, or reopen the document.
Why it's tied to one document, not floating free
Because a highlight is a pointer, it only makes sense attached to the thing it points at. Strip away the document and you're left with an orphaned quote — you'd know you once thought a sentence was worth marking, but not why, or where it sat, or what came before and after it.
Common problems and fixes
You rename the file. Nothing breaks. The highlight isn't tied to a filename — it's tied to the document's content.
You delete the document from Margina. The highlights go with it. That can feel abrupt, but it follows the same logic: a highlight without its document isn't a highlight, it's a fragment.
You replace the file with an unrelated document that happens to share a name. This is the real edge case worth knowing about. The anchor is looking for a passage that no longer exists, so the highlight can't relocate. If you want to keep your highlights, export them first — the guide on exporting your highlights and notes walks through the steps.
Doing this in Margina
In practice, none of this asks anything of you. Open a document, highlight a passage, close the app — nothing to configure, nothing to remember to save. Margina doesn't have an account, a server, or tracking, so your highlights sit on your device with the document they belong to, and backing them up is on your terms: iCloud, a cable, whatever you already use. Reading across an iPhone and an iPad and want your place to carry over between them? See keeping your reading position in sync. If this is the kind of thing you'd rather not think about while reading, Margina is on the App Store and Google Play.
Frequently Asked Questions
What happens to my highlights if I edit or replace the file?
Each highlight is anchored to the exact passage it marks, not to a page number. If the underlying document changes only slightly, the highlight still finds its passage. If you replace the file entirely with an unrelated version, the anchor has nothing to match, and the highlight can't relocate.
Are my highlights stored in the document file itself?
No. Margina keeps highlights as their own records, each pointing back to the document they belong to, rather than writing marks into the PDF or EPUB itself. Your original file stays untouched.
Do I need an account for my highlights to be saved?
No. Margina doesn't have an account, a server, or tracking. Highlights are saved locally on your device, tied to the document you highlighted them in.
Can I get my highlights out if I stop using Margina?
Yes — see the guide on exporting your highlights and notes for the steps.