Some KRL statements and expressions use extended quotes. Extended quotes allow multiple line passages that contain the double quote symbol ("
) to be more easily entered. There are two types of extended quotes in KRL:
Chevrons
Chevrons enclose the items to be quoted in double less-than and greater-than signs (<<...>>
). For example:
...
Values inside chevrons are treated as strings (with the exception of beestings). The white space whitespace is preserved.
Escaping
Like strings and regular expressions, a backslash allows free use of the terminator character (>
) inside, and a literal backslash requires two backslashes:
Code Block | ||||
---|---|---|---|---|
| ||||
var_1 = << \>\> >>;
var_2 = <<\\\>>>; // '\' followed by '>' |