gives a snippet of text from a document or other content object.
gives about n lines from the beginning.
gives about n lines from the end.
gives a span from lines n1 to n2
gives a span from lines n1 to n2 in steps of n3.
Details and Options
- The default value for n is 1.
- Snippet[File[…]] and Snippet[URL[…]] give snippets from files and URLs, respectively.
Basic Examples (1)
Show a snippet of text contained in a ContentObject:
Show only the first 3 lines:
Note that for ContentObject there is an equivalent form:
Introduced in 2015
Updated in 2015