Java supports multi-line strings with the triple-double quotes like in Python. String multiLineString = """This is a string that spans multiple lines in Java"""; Proposed markup: <literal type="str ...