Shouldn't CDATA be ignored by compiler ? At least what is inside of it ? czw., 12 maj 2022 o 17:37 Piotr Zarzycki <piotrzarzyck...@gmail.com> napisaĆ(a):
> Hi guys, > > I'm fighting with problem of displaying text inside component in MXML. I > have following text and a lot of similar one: > > "for machine in $(pfexec VBoxManage list runningvms | cut -f 1 -d ' ' | > sed 's/"//g'); do pfexec VBoxManage showvminfo $machine | grep > "Memory size:" | sed 's/^.* \([0-9]*\)MB$/\1/g' ; done | awk > '{sum+=$1/1024.0}END{printf "Running: %d GB\n", sum}'; for > machine in $({ pfexec VBoxManage list vms | grep -v Template; pfexec > VBoxManage list runningvms; } | sort | uniq -u | cut -f 1 -d ' ' | sed > 's/"//g'); do pfexec VBoxManage showvminfo $machine | grep > "Memory size:" | sed 's/^.* \([0-9]*\)MB$/\1/g' ; done | awk > '{sum+=$1/1024.0}END{printf "Other: %d GB\n", sum}';" > > I need to literally display it without changes. I would like to do that > inside MXML, no var declaration etc. I was experimenting with CDATA, but > compiler still complains about some literals inside this text instead > ignoring it. > > Does anyone have an experience with this ? > > Thanks, > -- > > Piotr Zarzycki > -- Piotr Zarzycki