Enhancement
Special characters, especially line breaks, are often quoted in string literals:
"first line\n" + "second line"
Larger text blocks should be written without quoting:
""" first line second line """
Application
The following escape symbols are supported:
\t tab \b backspace \n newline \r carriage return \f form feed \' single quote character \" double quote character \\ backslash character \uABCD Unicode-Escape for the unicode with hex code ABCD.
Test
- test.com.top_logic.model.search.expr.TestSearchExpression.testTextBlock()
- test.com.top_logic.model.search.expr.config.dom.TestExprFactory.testTextBlockIndented()
In the script console:
info({{ <h2>Test</h2> <pre> { """ Hello world with text blocks End of block """ } </pre>
)
}}}
info({{ <h2>Test</h2> <pre> { "Hello world\n" + " with text\n" + " blocks\n" + "End of block\n" } </pre>
) }}}