Plain text

From Free net encyclopedia

(Redirected from Plain-text)
Image:Merge-arrows.gif It has been suggested that this article or section be merged with Text file. (Discuss)
This article is about the meaning of plain text as oppose to formatted text. For the meaning of plain text or plaintext in cryptography, see plaintext. For a description of plain text in the context of computer files, see text file.

In computing, plain text is textual material, usually in a disk file, that is (largely) unformatted. Thus, "I'm keeping that letter in plain text form until someone insists on getting it in the Foo format".

The related term, plaintext, is most commonly used in a cryptographic context, while cleartext usually refers to lack of protection from eavesdropping. Usage of these terms is such that there is some confusion amongst them, especially among those new to computers, cryptography, or data communications.

Plain text (in contradistinction to formatted text) is also used to refer to files in ASCII text or other human-readable form (ie, when using a simple editor). This usually excludes files stored with formatting embedded in the file, such as Microsoft Word '.doc' files, or WordPerfect '.doc' files. Note that the embedded formatting is different in these two, homonymic, file types, though each program can translate between formats from the other (while reading or saving files). They can also, with some care in the importing and exporting, edit plain text files.

Plain text files include, somewhat circularly, any file that can be opened, read, and edited with a text editor which handles such files. Examples include Notepad (on Microsoft Windows), edlin (on Microsoft DOS), ed/vi/Emacs (on Unix, Linux, and elsewhere), pico, nano, SimpleText (on Mac OS), or TextEdit (on Mac OS X). In the Windows world, 'Text' and 'Text with Line Breaks' are the same thing save for the inclusion of characters meaning 'end of line' in the latter. 'MS-DOS text' allows inclusion of a few additional characters conforming to DOS usage.

Most compilers for programming languages require programs written for them (ie, their source code files) to be in plain text form, as do HTML, XML, LaTeX, TeX, PostScript, etc. The Pico programming language's editors are an exception to this, as they accept RTF files.

See also

nl:Platte tekst ja:プレーンテキスト th:Plain text