Folia's editor for code

Edit code and configuration files in a pane next to their folder, with syntax colors, their encoding and line endings kept, find and replace, and safe saves.

Website and App Store versions Since Folia Files 1.4

The Mac App Store edition is coming soon. The website edition has everything. Compare the editions

On this page

For a quick edit, no need to open another app: File › Open in Folia's Editor ⌘E (or right-click › Open in Folia's Editor) opens a text file in a pane next to its folder.

The editor opens text files only, up to 10 MB: code, configuration, Markdown, CSV, logs, dotfiles. It knows a file is text by its name, without reading it: its extension, or a known name without extension (Makefile, Dockerfile, .gitignore, .zshrc, README…). For Markdown and CSV, which have a preview and a table view, see Folia's text editor.

Syntax colors

The editor colors Swift, Python, JavaScript and TypeScript, JSON, HTML and XML (plist, SVG, Vue, Svelte…), CSS (SCSS, Less), shell scripts (sh, bash, zsh, fish), YAML, TOML and INI files, C, C++ and Objective-C, Go, Rust, Java and Kotlin, PHP, Ruby, SQL and Markdown.

Encoding and line endings

A file keeps what it had: its encoding (UTF-8 with or without BOM, UTF-16, Latin-1, Windows CP 1252) and its line endings (LF, CRLF or CR). The bottom bar shows both, with the line and column of the cursor and the word count.

If you type characters the file's encoding can't hold, Folia Files offers Save in UTF-8 (or Cancel, your changes stay in the editor).

Edit

  • Search… and Find and Replace…, in the editor's menu (with Reload from Disk, Show in Pane and Open with Default App).
  • Wrap Lines, also as a default in Settings › Files and Network › Editor › Wrap lines in the editor.
  • Save ⌘S (File › Save). The bottom bar says « Changes not saved yet — click to save (⌘S) ».

Saving writes the whole file at once, keeping its permissions: a crash or a full disk never leaves half a file. If the file changes on the disk while you edit it, Folia Files asks: Keep My Changes or Reload. Closing the pane, the tab, the window or Folia Files with unsaved changes asks too (Save, Don't Save).

A file on a server is edited through a copy on your Mac, sent back at every save. A read-only file (no permission, a read-only disk, inside an archive) opens read-only and says why.

Open some files in it by double-click

Settings › Files and Network › Editor › Extensions opened in Folia's editor: type extensions separated by commas (md, txt, json): those files then open in the editor with a double-click or ↩, in a pane next to the folder. Empty (the default), they open in their own app.