多行字符串字面量

基本类型 / 字符串

var
  Lines, Classic: string;
begin
  //Delphi 12 的多行字面量:
  //结尾的引号决定左边距
  Lines := '''
    1. First line
    2. Second line
      3. Third line
    4. Fourth "line"
    ''';
  WriteLn(Lines);

  //Delphi 12 之前:字符串拼接
  Classic := '1. First line' + sLineBreak +
    '2. Second line';
  WriteLn(Classic);
end.