Preview source code or Markdown on mobile
Preview code or Markdown on mobile within the 200 KiB text cap, use wrap, copy, and share tools, and understand the supported Markdown subset.
Last reviewed
Dosya previews text-family files inline only when the declared size is at most 200 × 1024 bytes. Larger files show the too-large state and offer Save to phone when downloads are allowed.

Source files use a monospaced line-numbered stage with lightweight syntax coloring. Markdown uses a formatted document stage rather than showing raw source.
Steps
- Open the file and confirm its extension, size, lock badge, and line count.
- For code, inspect the language-colored lines and use Wrap long lines or horizontal scrolling.
- Use the code toolbar’s Copy or Share only after confirming the entire body loaded.
- For Markdown, compare headings, emphasis, lists, quotes, links, rules, inline code, and fenced code with the source’s intent.
- Treat unsupported Markdown constructs as plain paragraph text rather than assuming a full CommonMark rendering.
- If the file exceeds 200 KiB or the preview fails, save it when allowed and open it in a dedicated editor.
Code classification
Dosya recognizes common markup, JavaScript/TypeScript, CSS, Java/Kotlin/Swift/C-family, Go/Rust, JSON, SQL, YAML/TOML/INI, shell, Python/Ruby/Lua, and many plain-text extensions. Highlighting is line-at-a-time and does not retain parser state, so multiline strings or comments can color imperfectly. It is a reading aid, not a compiler.
Markdown coverage
The renderer supports level 1–3 visual headings, paragraphs, bold, italic, inline code, safe external links, fenced code, block quotes, ordered and unordered lists, and horizontal rules. Higher heading levels are displayed using the level-3 style. Tables, images, and nested structures are not parsed as rich blocks and degrade to readable text.
Only safe external URLs open in the system browser. A view-only file can be read but not saved; restricted bytes are kept out of the persistent disk cache.
Expected result
A supported file at or below 200 KiB opens as readable highlighted code or formatted Markdown with the app theme. Long or unsupported content remains accessible through scrolling, plain-text fallback, or an allowed external save.
Related guides
Was this helpful?
Loading helpfulness results…
Voting saves a necessary ballot cookie for up to 180 days so you can change your answer.
Questions and replies
Ask about the steps in this guide. Questions are reviewed before publication.
Keep account details, credentials and private files out of public questions. Use private support for those.
Loading questions…
Sign in to your Dosya account to ask a question.