I am printing red and green color in groovy script, its works fine in console but throws error when the groovy script is added to confluence as below
Error: [com.ctc.wstx.exc.WstxLazyException] Illegal character ((CTRL-CHAR, code 27)) at [row,col {unknown-source}]: [1,321]
String LIGHT_RED = "\u001B[1;33m" static String color(String text, String ansiValue) { ansiValue + text } println color("sample", LIGHT_RED)
I would suggest using regular HTML and CSS
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.