mirror of
https://github.com/processing/processing4.git
synced 2026-01-29 11:21:06 +01:00
Offers support for multi-line strings with a flag to simulate the feature prior to switching to Java 17 build flags. Note that comments are left in (TODOs) where the switch would be required to support it "natively".
10 lines
169 B
Plaintext
10 lines
169 B
Plaintext
String testOldStyle = "line1\"\nline 2 \"\"\nline 3";
|
|
String testMultiline = """
|
|
line4 "
|
|
line 5 ""
|
|
line 6
|
|
line 7""";
|
|
|
|
println(testOldStyle);
|
|
println(testMultiline);
|