1
在stringtemplate-4中,如何生成多行註釋?例如,模板是這樣的(註釋的開始和結束都在其他一些模板):如何生成多行註釋
test(DESCRIPTION) ::= <<
*
* <DESCRIPTION>
*
>>
和說明是一個很長的字符串,也可能包含在其中線的飼料,如:
"This is a small description of the program, with a line-width of 50 chars max, so the line is split.\nFinal line."
因此,我們要輸出字符串,如:
*
* This is a small description of the program,
* with a line-width of 50 chars max, so the
* line is split.
* Final line.
*