Syntax highlight for CTL
Assignee
Reporter
Martin Pilat
Martin PilatSprint
None
Description
Steps to reproduce
None
Activity
Show:
Roland Botka October 13, 2021 at 2:28 PM
Merged in master
Filip Reichman August 19, 2021 at 7:46 AMEdited
https://cloverdx.atlassian.net/browse/CLO-18838
A snippet from the documentation:
<programlisting><code>map[string, integer] myMap = {"first" -> 1, "second" -> 2};
list[string] listOfKeys = getKeys(myMap); // ["first", "second"]
$out.0.variantField = myMap;
listOfKeys = getKeys($out.0.varianField); // ["first", "second"]
variant myMapVariant = {1 -> true, "hello" -> false};
variant listOfVariantKeys = getKeys(myMapVariant); // [1, "hello"]</code></programlisting>
Fixed
Details
Story Points
3
Priority
Major
Fix versions
QA Testing
JUnit test
QA Test Identification
componentDetail.spec.ts
Components
Created May 17, 2021 at 10:32 AM
Updated September 12, 2023 at 8:45 AM
Resolved October 13, 2021 at 2:28 PM
The CTL is returned from API as a string with newline characters. It should be parsed and rendered with the code style.
Try to use the same code formatter as in documentation - ask Milan for help.
Story owner: Roland Botka