It's easy to convert a static text file into something more readable, but I can't seem to find a solution for a dynamic text file at a static address.
It's easy to convert a static text file into something more readable, but I can't seem to find a solution for a dynamic text file at a static address.
Chose a readable font. Text files are shown with the browser default monospace font, but you change it to whatever you like best.
I think there is not much else you can do with raw text files in the browser. The next level would be to write in something like markdown and view the processed text, I think.
I suppose I could try to write something that scrapes the text file, adds <p> tags around paragraphs and presents it with some really basic CSS. I don't know how to code, but I might try cobbling something together.
Additionally, since it uses the Markdown syntax, it might give you more than paragraphs if you use more than line breaks. (Have a look at the quick reference for more about the syntax.)
Edit: Didn't see your answer to @kybernetikos. I still think this could help you out. Also note that in HTML (what you'll get by adding <p> tags to your text), whitespace is collapsed (except inside <pre> tags)
Instead of writing a converter yourself you could try to use Markdown on your files without modification and see how well it does. The design goal of Markdown is:
Markdown allows you to write using an easy-to-read,
easy-to-write plain text format, then convert it to
structurally valid XHTML (or HTML).
There is also AsciiDoc and some others.https://gist.github.com/anonymous/5844581
The styling applied there really clashes with the explicit breaks in the story text. Anyway, that gets you down to one click each time you want to review the text file, which is maybe still more than you want.
Now write your novel in markdown in an index.md file. Every time you check in github will render a nice html file for you that's easy to read, but your source remains easy to write and diff since it's just markdown.
Might still be worth it though. Thanks.
2: Replace the monospace font with a non-monospace font one
3: Tweak other settings until you have the typesetting you prefer
4: save as bookmarklet specifically for formatting raw text
Done!