Toolbox List Item Expression can generate this sort of text. The examples are a bit neglected, see if you can figure something out.
example app editor link
Relevant post: