I came across a fairly recent RFC on "URI Fragment Identifiers for the text/plain Media Type". I ran a few tests on the URL itself in Chrome and IE to no avail. For example:
https://stackoverflow.com/robots.txt#line=50
Should work similar to:
https://stackoverflow.com/about#footer
How do I write a Greasemonkey script to do the following:
The closest thing is the addrable project. It is targeting the text/csv
MIME type, and has jQuery and NodeJS implementations. Outside of the browser landscape, Canonical Fragment Identifiers for ePub would be a bridge between plain text and markup.
References