|Cobra||Interactive Query Language||display|
NAMEdisplay — display source code for the current set of marks
d[isplay] d[isplay] number number d[isplay] * number
DESCRIPTIONShows the source code for one or all current marks. Without arguments the command will print the source code for all current marks.
In window mode (see [no]window) when a number is given, a tcl/tk window pops up with the context of the marked code fragment.
: dThe output can be restricted to a single item from the set of current marks, e.g. the fourth item.
: d 4With an additional numeric argument, additional lines of context can be printed before and/or after the line of code that contains the marked token.
: d 4 2If the second argument is a negative number, only that number of lines before the target line is printed:
: d 4 –20If the second argument has a + prefix, then the specified number of lines after the target line is printed.
: d 4 +20Using a * for the first argument, produces a listing of all the marks with the specified number of lines of context for each one.
: d * 2After executing a fcts command, a display command will also contain the function name of marked items.
SEE ALSOB, json, list, pre, V, [no]window
Return to index
|(Last Updated: 15 January 2021)|