ArticleslgStudy

science

Text editor

Text editor is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Text editor rather than just read about it. In short: A text editor is interactive software that allows a user to edit plain text, such as Notepad. As with any software, a text editor can be installed onto a system, but often a relatively simple text editor is included in a default installation of an operating system (OS) since editing text files is a relatively basic need for any system and since a simple text editor can be provided at relatively low cost.

Text editor — main illustration
Text editor — illustration

Key takeaways

  • Text editor belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Text editor to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Text editor from memory before moving on to harder problems.

Reference excerpt

A text editor is interactive software that allows a user to edit plain text, such as Notepad. As with any software, a text editor can be installed onto a system, but often a relatively simple text editor is included in a default installation of an operating system (OS) since editing text files is a relatively basic need for any system and since a simple text editor can be provided at relatively low cost. As source code is text, any text editor can be used to edit code, but a source-code editor is designed with features specifically intended for editing code. Some provide integration with software development tools and provide a debugging environment.

Plain text and rich text There are important differences between plain text (created and edited by text editors) and rich text (such as that created by word processors or desktop publishing software). Plain text exclusively consists of character representation. Each character is represented by a fixed-length sequence of one, two, or four bytes, or as a variable-length sequence of one to four bytes, in accordance to specific character encoding conventions, such as ASCII, ISO/IEC 2022, Shift JIS, UTF-8, or UTF-16. These conventions define many printable characters, but also non-printing characters that control the flow of the text, such as space, line break, and page break. Plain text contains no other information about the text itself, not even the character encoding convention employed. Plain text is stored in text files, although text files do not exclusively store plain text. Since the early days of computers, plain text was (once by necessity and now by convention) generally displayed using a monospaced font, such that horizontal alignment and columnar formatting were sometimes done using whitespace characters. Rich text, on the other hand, may contain metadata, character formatting data (e.g. typeface, size, weight and style), paragraph formatting data (e.g. indentation, alignment, letter and word distribution, and space between lines or other paragraphs), and page specification data (e.g. size, margin and reading direction). Rich text can be very complex. Rich text can be saved in binary format (e.g. DOC), text files adhering to a markup language (e.g. RTF or HTML), or in a hybrid form of both (e.g. Office Open XML). Text editors are intended to open and save text files containing either plain text or anything that can be interpreted as plain text, including the markup for rich text or the markup for something else (e.g. SVG).

History

Before text editors existed, computer text was punched into cards with keypunch machines. Physical boxes of these thin cardboard cards were then inserted into a card reader. Magnetic tape, drum and disk card image files created from such card decks often had no line-separation characters at all, and assumed fixed-length 80- or 90-character records. An alternative to cards was Punched tape. It could be created by some teleprinters (such as the Teletype), which used special characters to indicate ends of records. Some early operating systems included batch text editors, either integrated with language processors or as separate utility programs; one early example was the ability to edit SQUOZE source files for SCAT in the SHARE Operating System. The first interactive text editors were "line editors" oriented to teletypes: teleprinter-style or typewriter-style terminals that mechanically printed both input and output on the same continuous roll of paper, without an illuminated display. Commands (often a single keystroke) effected edits to a file at an insertion point, that the operator needed to keep track of, called the "cursor". Edits were verified by typing a command to print a small section of the file, and periodically by printing the entire file. In some line editors, the cursor could be moved by commands that specified the line number in the file, text strings (context) for which to search, and eventually regular expressions. Line editors were major improvements over keypunching. Some line editors could be used by keypunch; editing commands could be taken from a deck of cards and applied to a specified file. Some common line editors supported a "verify" mode in which change commands displayed the altered lines. An example configuration, circa 1975, was a Teletype Model 33 as a console to a PDP-11 using Version 6 Unix, manipulating text with the ed, the standard UNIX text editor. When computer terminals with video screens became available, screen-based text editors (sometimes called just "screen editors") became common. One of the earliest full-screen editors was O26, which was written for the operator console of the CDC 6000 series computers in 1967. Another early full-screen editor was vi. Written in the 1970s, it is still a standard editor on Unix and Linux operating systems. Also written in the 1970s was the UCSD Pascal Screen Oriented Editor, which was optimized both for indented source code and general text. Emacs, one of the first free and open-source software projects, is another early full-screen or real-time editor, one that was ported to many systems. The 1977 Commodore PET was the first mass-market computer to feature a full-screen editor. A full-screen editor's ease-of-use and speed (compared to the line-based editors) motivated many early purchases of video terminals. The core data structure in a text editor is the one that manages the string (sequence of characters) or list of records that represents the current state of the file being edited. While the former could be stored in a single long consecutive array of characters, the desire for text editors that could more quickly insert text, delete text, and undo/redo previous edits led to the development of more complicated sequence data structures. A typical text editor uses a gap buffer, a linked list of lines (as in PaperClip), a piece table, or a rope, as its sequence data structure.

Typology

… excerpt ends here. Continue reading the full article.

Illustrations

Text editor: Editors like Mousepad, shown here, are often included with an operating system as a helper application for editing text files.
Editors like Mousepad, shown here, are often included with an operating system as a helper application for editing text files.
Text editor: A box of punched cards with several program decks
A box of punched cards with several program decks
Text editor: Emacs, a text editor popular among programmers, running on Microsoft Windows
Emacs, a text editor popular among programmers, running on Microsoft Windows
Text editor: gedit is a text editor that was once shipped with GNOME.
gedit is a text editor that was once shipped with GNOME.

Worked examples

Example 1 — a first encounter with Text editor

Start with the simplest possible case. Write down what Text editor claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Text editor before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Text editor ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Text editor

In research
Text editor appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Text editor in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Text editor is common in secondary-school and first-year university syllabi. It links to neighbouring topics Technical communication tools, Text editors, so understanding it makes those chapters shorter.
In everyday life
Look for Text editor outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Text editor” →

Affiliate

Preply — study more efficiently by working with a personal tutor. 50% off.

How to study Text editor in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Text editor means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Text editor out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Text editor in simple terms?

A text editor is interactive software that allows a user to edit plain text, such as Notepad. As with any software, a text editor can be installed onto a system, but often a relatively simple text editor is included in a default installation of an operating system (OS) since editing text files is a…

Why does Text editor matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Text editor?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Text editor.

Tags

  • Technical communication tools
  • Text editors

Keep exploring