You can integrate this reader directly into an iOS / macOS Shortcut with dynamic real-time highlighting in 2 ways:
Option A: Hosted URL Parameter (Easiest)
Host this HTML page on GitHub Pages, Vercel, or Netlify, then use the Open URL or Show Web Page action in Shortcuts:
https://your-site.com/?text=[Shortcut Input / Clipboard]
Option B: Offline Data URL (In Shortcuts)
Copy the entire HTML code of this web page into a Shortcuts Text action, encode URL, and open as data:
- Get Clipboard or Shortcut Input.
- URL Encode the clipboard text.
- Combine into URL:
data:text/html;charset=utf-8,[HTML Content with ?text=...]
- Add action: Show Web Page.