Spark RichEditableText: Add line number in the front of each line
hi, dear
i trying customize spark textarea syntax highlight editor
now want add line number in front of each line.
something like:
#001 lorem ipsurr dolor sit amet,consecte adipiscing elit.
#002 praesentporttitor dolor et mauris blanceitin mperdiet nunc ultricies.
#003 ivamus scelerisque puruseget nibh mattis ac tincidunt magna bibendum. sed
so planning following:
first, set text padding left , linebreak
textarea.textdisplay.setstyle( "paddingleft", 30);
textarea.textdisplay.setstyle( "linebreak", linebreak.explicit);
then, wanna draw line number background of richeditabletext
i find 1 way "textareaskin(textarea.skin).background.fill = xxxx;"
but found background fixed, mean if move vertical scrollbar, background fixed there.
so, how draw background richeditabletext , background scroll text. not fixed.
any suggestion welcome
thank you
More discussions in Flex (Read Only)
adobe
Comments
Post a Comment