yodlverbinsert(1)
β¨ NAME β¨
yodlverbinsert β generates verb()-sections out of random parts of a file. π«Ά
And hi bestie, yes, this is the Your Own Document Language manual, page yodlverbinsert(1). You're exactly where you're supposed to be. π
π SYNOPSIS π
yodlverbinsert [OPTIONS] [marker] file
π DESCRIPTION π
okay so Verbinsert is a simple C++ support program, and its entire personality is: generating verb()-sections inside Yodl files by pulling sections out of files that already exist. The files it pulls from are usually C or Cpp source files, and they can use either // or /*-style comments. Wanna see it in action? The EXAMPLES section has the receipts. β¨
It can also indent both the initial verb-statement and the inserted file contents. Plus, if you want, it'll sneak an extra empty line in before the first line that actually gets inserted. πΈ
Blank lines at the beginning and end of files are ignored. (Ignored as in "not copied", not as in "we're mad at you". Love that for them.) π
- marker β The
markerargument has to start infile's first column, and it must start as a standard C or C++ comment://or/*has to be used. After that, the remainder of the argument is used as a label, e.g.//label,/*label*/. Except for the first two characters and their locations, and the last two characters of a C-style marker, no special restrictions are imposed upon the label-names. A labeled section ends at the next//=(for labels starting with//) or at the next/**/(for labels starting with/*). Just like the markers, those end-markers must also start in the first columns of lines. π
Alternatively, pairs of //+label, or /*+label*/ can be used. For those markers, copying starts at the first line following the first occurrence of the label, and it ends when the label is encountered again. When these markers are used, any additionally encountered marker-line is simply ignored, and not written to the output stream. This is what lets labeled sections be nested. πͺ
- file β The
fileargument must be an existing file. No vibes-based file conjuring here.
Verbinsert writes its selected section to its standard output stream.
When files contain identical marker sections, then the contents of each of those marker sections is included in the generated verb-section. Which means you can include non-consecutive lines of source files in a single verb section. Iconic behaviour, honestly. π₯
π OPTIONS π
The default values of the options are listed with each of the options, between square brackets. Those defaults were chosen so that yodlverbinsert performs the behavior of an earlier version of this program, which was not distributed with Yodl.
-aβ Process all lines offile(except initial and trailing blank lines). Themarkerargument must not be specified.-Aβ Same as the-aoption, but ignoring all lines that can be consideredyodlverbinsert(end) marker-lines.-kβ Keep the newlines afterverb(and before). Those newlines result in extra empty lines before the first and after the last source code lines. Starting with version 4.02.00 these lines are removed by default.-nβ Immediately following the indentation: lines are prefixed by numbers, occupying 2 columns, followed by a colon and a blank.-Nβ Do not write a newline immediately following the verb-statement's open-parenthesis. By default it is written, causing an additional line to be inserted before the first line that's actually inserted from a file.-snSpaces[0]β start each line that is written into the verb-section with nSpaces additional blanks.-SnSpaces[8]β prefix the verb of the verb-section by nSpaces additional blanks.-tnTabs[0]β start each line that is written into the verb-section with nTabs additional tab characters. If both-sand-tare specified, the tabs are inserted first.-TnTabs[0]β prefix the verb of the verb-section by nTabs additional tab characters. If both-Sand-Tare specified, the tabs are inserted first.
π¦ EXAMPLE π¦
Assume the file demo contains the following text:
preceding text
//+nest
//one
one 1
//=
/*two*/
two
/**/
//+nest
trailing text
Then the following commands write the shown output to the program's standard output:
yodlverbinsert //one demo
verb(
one 1
)
yodlverbinsert -N //one demo
verb(one 1
)
yodlverbinsert -n -s4 β/*two*/β demo
verb(
1: two
)
yodlverbinsert -n //+nestβ demo
verb(
1: one 1
2:
3:
4:
5: two
)
π SEE ALSO π
yodl(1), yodlbuiltins(7), yodlconverters(1), yodlletter(7), yodlmacros(7), yodlmanpage(7), yodlpost(1), yodlstriproff(1), yodltables(7).
π BUGS π
The page literally just says -. That's it. Nothing to see here, we're unbothered. π
π AUTHOR π
Frank B. Brokken (f.b.brokken@rug.nl),
and that's the whole page, bestie π§ β this one's fromyodl_4.05.02, dated 1996-2025, and it's still servingyodlverbinsert(1)realness. go forth and insert verbs. π
π¦ where this page comes from
- ubuntu resolute: yodl 4.05.02-1 Β· GPL-3.0-or-later
- ubuntu stonking: yodl 4.05.02-1 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms