escape code
escape code
A text command preceded either by the escape (Esc) character (ASCII 27) or some other symbol such as an ampersand (see below) or backslash (see string literal). The escape code signals the device to execute the text command rather than print or display the text characters. For example, the escape character (ASCII 27) followed by &l10, sets the LaserJet printer to landscape mode. See ASCII chart.
Just the Opposite: Render - Don't Execute
Escape codes are also used to achieve the exact opposite effect: causing a command to be displayed or printed rather than executed. For example, while within an environment that renders HTML, it may be necessary to display HTML tags intact for instructional purposes without executing them. In such cases, an ampersand (&) is used as the escape character. When followed by lt (less than) or gt (greater than) plus a semicolon, it is rendered as < and > text symbols rather than treated as a tag delimiter. See ampersand codes.
Copyright © 1981-2025 by The Computer Language Company Inc. All Rights reserved. THIS DEFINITION IS FOR PERSONAL USE ONLY. All other reproduction is strictly prohibited without permission from the publisher.
Copyright © 2003-2025 Farlex, Inc
Disclaimer
All content on this website, including dictionary, thesaurus, literature, geography, and other reference data is for informational purposes only. This information should not be considered complete, up to date, and is not intended to be used in place of a visit, consultation, or advice of a legal, medical, or any other professional.