THE

TAG - displays lines matching target in different colour

Syntax:
TAG [More|Less] [rtarget]

Description:
The TAG command is similar to the ALL command, in that it allows lines that match the specified target to be displayed. Where it differs to ALL is that the lines that don 't match are still displayed, but the lines that do match are displayed in the colour specified by SET COLOUR HIGHLIGHT. This target consists of any number of individual targets seperated by ' & ' (logical and) or ' | ' (logical or). '

For example, to display all lines in a file that contain the strings 'ball' and 'cat' on the same line or the named lines .fred or .bill, use the following command

TAG /ball/ & /cat/ | .fred | .bill

Logical operators act left to right, with no precedence for &.

TAG without any arguments displays all lines without any highlighting.

If SET HIGHLIGHT is not set to TAGGED, then if the specified rtarget is found, SET HIGHLIGHT is set to TAGGED.

Compatibility:
XEDIT: N/A
KEDIT: Compatible. MORE and LESS options not implemented.

See Also:
ALL, SET HIGHLIGHT, SET COLOUR

Status:
Complete.


The Hessling Editor is Copyright © Mark Hessling, 1990-2002 <M.Hessling@qut.edu.au>
Generated on: 15 Aug 2002

Return to Table of Contents