Open a text file in the Dosya editor
Open supported text files of 2 MiB or less, distinguish the full-page plain-text/Markdown editor from the viewer overlay, and recognize loading failures.
Last reviewed
Text preview and text editing use the same readable-type detector, but Edit adds two gates: the file must be 2 MiB or smaller and cannot have a full file lock.

Recognized text. Dosya accepts common plain text, Markdown, JSON, YAML, CSV/TSV, XML, HTML/CSS, JavaScript/TypeScript, Python, SQL, shell, configuration, subtitle, and source-code extensions. It also recognizes text MIME types and extensionless names such as README, LICENSE, Dockerfile, Makefile, and .env.
Steps
- In Files, select the filename to open its viewer.
.txt,.md, and.markdownuse the full-page editor, which fetches current content regardless of the preview version. Other recognized readable text uses the overlay; select Latest, or deliberately select an older version if its bytes should be the starting point. - Check that the viewer renders text rather than an unsupported-file card. Text preview refuses content over 2 MiB and reports that the file is too large to preview.
- Look for Edit in the viewer header. The control is absent for files over 2 MiB and for a file whose own lock mode is
full_lock. - Choose Edit. The full-page editor fetches current file details and revalidates the current raw content. The overlay fetches the raw bytes for the selected preview version, including historical content. Both initialize CodeMirror with line wrapping.
- Confirm the filename. The full-page editor has Save; Markdown also offers Split, Edit, and Preview layouts, with Edit and Preview on narrow screens. The overlay has Save version and loads syntax support for recognized languages.
- If loading fails, the full-page editor stays on an error screen with Try again. The overlay closes and reports Editor unavailable — Could not open the text editor. Check access and connectivity before retrying.
Encoding note. Preview recognizes UTF-16 little-endian and big-endian byte-order marks. The editor itself loads the response as text through the browser, so preserve a separate local copy before editing an encoding-sensitive file.
Expected result
The full-page editor opens current plain-text or Markdown content with Save. The overlay opens the selected preview version with Save version. A loading failure creates no version and is reported in the relevant editor’s error UI.
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.