Please enable JavaScript to view this site.

ESL Documentation

You can write a textual region to a color-attributed file by specifying the keyword colored; for example:

 

response to ...

    write Chapter_3 to colored file Book

 

The color-attributed file retains the colors associated with the text and its background. If you write an uncolored textual region to a color-attributed file, the file will retain just the background and foreground colors of the textual region. If you write a colored textual region to a color-attributed file, the file will also retain the colors of individual characters, as defined in a make segment or make block action statement, or as defined in a color header of a file that was previously read into a colored textual region via the CText module.

 

A color-attributed file is a binary file that assigns foreground and background colors to the text on a character-by-character basis, similar to the way that a word processing program assigns attributes to its text files. These files cannot be edited with any editor or word processor.

 

When you write a colored textual region to an ASCII text file, the color specifications are not written to the file, and the file can be edited as usual.