.ini/.properties, .rtf and .xml files open readable
Each opens as a drawn view instead of raw text. Source is one tap away (?view=source).
.iniand.properties: one table per[section]with a key and value per row; comments dropped, properties continuation lines joined. A value whose key ends in key, secret, token or password is shown as•••. 500 settings, thenmore not shown. A file with no settings, or over 1 MB, opens as text..rtf: its text as paragraphs, formatting dropped. Font and colour tables, pictures, headers, footers and other destinations are skipped; nothing embedded is fetched or run. 100,000 characters, then a note. A.rtfnot starting with{\rtfis plain text. Over 5 MB opens as text..xml: the element tree with attributes and leaf text. Prolog, comments, processing instructions and the doctype are skipped and no entity is expanded (only the five named ones and numeric references are decoded). 1,000 elements, 24 levels deep, thenmore elements not shown; at most 100,000 elements are read, a file with more is counted as that many. Indented with a small step per level and wrapped, so a deep tree fits a phone. JUnit, OPML and feed files keep their own views. Over 5 MB opens as text.- A file's bytes must agree with its name; the media route still sends all three as
application/octet-stream. Every value is escaped, drawn on the server; no script, no dependency.
.conf stays a config file.
In the terminal (the file browser, src/tui/screens/workspace.ts, the same parsers): .ini is a Section/Key/Value table, .rtf a table of its paragraphs, .xml a table with a row per element (indented name, attributes, text). Same masking and caps.
Code: src/web/render/ini.ts, rtf.ts, xml.ts, kinds.ts, renderers.ts. Test: test/render-ini-rtf-xml.test.ts.