Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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:

Code Block
themeConfluence
languagejavascript
somevar = <<

...


<p>This is <em>some</em> HTML.<br/>

...


<a href="http://www.google.com">Search Google</a>

...


</p>

...


>>;

Values inside chevrons are treated as strings. The white space is preserved.

Clown

...

Hats

Clown hats are used to quote JavaScript (<|...|>). The primary difference between chevrons and clown hats is that non-essential whitespace may not be preserved by the execution engine for strings inside clown hats.

...

 

Code Block
themeConfluence
languagejavascript
somecode = <|

...


var e = 5;

...


var f = e + 6;

...


|>;