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

btw,  need implement feature,  "lines in alternate color", think related same question.




More discussions in Flex (Read Only)


adobe

Comments

Popular posts from this blog

CS5 Adobe Media Encoder: Encode failed because the source duration is nil.

cf_sql_integer vs cf_sql_bigint vs cf_sql_int??

localhost/joomla15/administrator doesnt work - Joomla! Forum - community, help and support