STET (text editor)

STET (text editor)

The STET text editor (the 'STructured Editing Tool') may have been the first folding editor; its first version was written in 1977 by Mike Cowlishaw. The editor runs on the IBM VM/CMS operating system.

STET was written to explore an approach to text editing that followed the principles of Structured programming. It allows programs and documentation to be written 'top-down', with blocks of code or text kept to a limited size (usually less than a page).

This was "a first attempt to take the structure out of the domain of languages, and into the domain of editors. In addition to conventional editing facilities, STET gives the user a third dimension: a tree structure that may be traversed using Program Function Keys much as scrolling is normally implemented" [STET – A STructured Editing Tool Version 2, Davies S. and Cowlishaw M, "IBM UK Scientific Centre", 30pp, 28 December 1980] .

Principles

The editor, like many text editors, is a full-screen editor; a window into the file being edited is displayed and the lines displayed can be edited directly on-screen by insertions, deletions, or overtyping. Editing is also effected by pressing programmable action keys or by typing in commands. Commands are either 'top-line commands' (entered in a command entry area on the top line of the screen) or 'line commands' (entered in a 4-character command entry field adjacent to each displayed line of text).

Top-line commands generally apply to the entire file being edited, and include the usual operations such as saving, searching, replacing, movement around the file, and so on (over 60 in all).

Line commands apply to a single line or a number of lines, and allow copying, moving, overlaying, merging, uppercasing and the like. An innovation in STET is the ability to mark a "group" of lines using the < line command to mark the first and last lines of a group. The group of lines can then be manipulated as a whole; they can be copied, merged, "etc.", and also make possible the 'structured editing commands' which provide the folding capabilities of the editor.

tructured editing commands

The structured editing facilities of STET are based on the concept that each file is represented as a collection of named blocks of lines. A block is created from an (anonymous) marked group of lines by the command (for example) 'form commands'. This command creates the block with name 'COMMANDS' and replaces the group of lines with a single line with a reference to COMMANDS (identified by its first non-blank character being some special character, by default ')'). This feature makes it easy to create a structured file from a flat file.

The block reference concept is very similar to the idea of links in a Wikipedia file, and indeed in STET a block can also be created by putting a new reference on a line and then 'entering' that reference to edit the block.

The structured editing commands also allow the user to see a map of the tree structure of the file, list the blocks alphabetically, and navigate the structure of the file. Navigation upwards and downwards or to a named block is possible, along with 'go to next block at this level' (that is, go up a level, find the next block reference at that level, and then go down a level). Other commands allow blocks to be renamed, expanded, "etc.", and also allow a flat file to be built from all or part of the structured file.

Other

The editor is written in PL/I except for the 3270 screen interface which is written in Assembler. STET was written and maintained by Mike Cowlishaw from 1976–1979 and then taken over by Steve Davies, who continued to enhance and maintain it through the 1980s. Many of the features in STET were used in later IBM text editors, including XEDIT and Lexx [LEXX – A programmable structured editor "IBM Journal of Research and Development", Vol 31, No. 1, 1987, IBM Reprint order number G322-0151] .

Limitations

All files that can be edited are limited to a maximum of 32,767 characters wide (line length) and each block is limited to a maximum of 32,767 lines. A unstructured 'flat file' is edited as a single block.

A structured file is stored on disk in a special format which allows effcient loading and navigation of the blocks in the file. This allows each file to also store useful meta-information (such as statistics of action key usage, total edit time, "etc."), but hasthe disadvantage that a flat file has to be 'built' from the structured file before (for example) it can be processed by a compiler or word-processing utility.

References


Wikimedia Foundation. 2010.

Игры ⚽ Нужна курсовая?

Look at other dictionaries:

  • STET — • Specialized Technique for Efficient Typesetting ( > IEEE Standard Dictionary ) • Societa Telecomunicazione Ellettronica Telematica Holding der IRI mit ITC, CSELT u.a. ( > Lexikon der Text und Datenkommunikation ) stevie (Atari ST/)STe vi… …   Acronyms

  • STET — [1] Specialized Technique for Efficient Typesetting ( > IEEE Standard Dictionary ) [2] Societa Telecomunicazione Ellettronica Telematica Holding der IRI mit ITC, CSELT u.a. ( > Lexikon der Text und Datenkommunikation ) stevie (Atari ST/)STe …   Acronyms von A bis Z

  • Folding editor — A folding editor is a text editor which supports text folding or code folding, a mechanism allowing the user to hide and reveal blocks of text mdash;usually named. Typically this is done to allow the user to better picture the overall structure… …   Wikipedia

  • List of text editors — The following is a list of text editors. For a list of outliners, see that article s external links. Graphical and Text User Interface The following editors can either be used with a Graphical user interface or a Text user interface. System… …   Wikipedia

  • Code folding — is a feature of some text editors, source code editors and IDEs that allows the user to selectively hide and display sections of a currently edited file as a part of routine edit operations. This allows the user to manage large amounts of text… …   Wikipedia

  • publishing, history of — Introduction       an account of the selection, preparation, and marketing of printed matter from its origins in ancient times to the present. The activity has grown from small beginnings into a vast and complex industry responsible for the… …   Universalium

  • Diana Athill — OBE (born December 21, 1917) is a British literary editor, novelist and memoirist who worked with some of the most important writers of the 20th century. Contents 1 Life and writings 2 Selected bibliography 2.1 Fiction …   Wikipedia

  • List of Latin words with English derivatives — This is a list of Latin words with derivatives in English (and other modern languages). Ancient orthography did not distinguish between i and j or between u and v. Many modern works distinguish u from v but not i from j. In this article both… …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”