Spanish Total.js
English
Documentation For AI agents
Contents

Choose how a file is written

TotalEdit finds the language, the indentation, the encoding and the line endings of each file, and keeps them. The bar at the bottom shows the four, and a press on each one changes it for that file.

.md GitHub
On this page

Language

It decides the colours and the help. TotalEdit finds it by the name of the file, and has these: JavaScript, TypeScript, HTML, CSS, JSON, Markdown, Rust, Python, Go, PHP, Java, C and C++, C#, Kotlin, Swift, Ruby, Lua, SQL, YAML, TOML, XML, Shell and Dockerfile. SCSS and Less have the colours of CSS, and Svelte and Vue those of HTML.

To choose another, press the name of the language. Plain text has no colours.

A new file has no language until you save it with a name or choose one.

Indentation

TotalEdit reads the file to know whether it uses tabs or spaces, and how many. Spaces: 4 is a level of four spaces, and Tabs: 4 is a tab that looks four columns wide.

Press it to choose 2 spaces, 4 spaces, 8 spaces or Tabs. It changes what you write from then on: the lines that the file already has stay as they are.

A file with nothing indented, or a new one, uses what the settings say.

Encoding

UTF-8, UTF-8 with BOM or Latin-1. A file that is not valid UTF-8 is read as Latin-1. If its letters look wrong, it has another encoding, which TotalEdit does not read.

After you choose another, the file has a change to save, and is written in the new encoding when you save it. If it has a character that Latin-1 does not have, such as €, TotalEdit says so and does not save it.

Line endings

LF (macOS, Linux) or CRLF (Windows). Choose another and save the file to change them all.

A file that mixes both is taken as CRLF, and all its lines end that way after you save it.
Made in Europe