Salesforce Summer '26 introduces multiline string syntax in Apex using triple single-quotes:
String json = '''
{
"name": "John"
}''';
After the opening ''', the main text starts on a new line. The closing ''' can sit directly after the text or on a new line.
This requires lexer-level support for a new triple-quoted string token, distinct from the existing single-quote string literal.
Tasks
Source: Salesforce Summer '26 Release Notes, Apex section — Write Cleaner Code by Using Multiline Strings.
Salesforce Summer '26 introduces multiline string syntax in Apex using triple single-quotes:
After the opening
''', the main text starts on a new line. The closing'''can sit directly after the text or on a new line.This requires lexer-level support for a new triple-quoted string token, distinct from the existing single-quote string literal.
Tasks
Source: Salesforce Summer '26 Release Notes, Apex section — Write Cleaner Code by Using Multiline Strings.