[HELP]Change attributes of text in one line of PtMultiText?

How to change attributes of text in one line of PtMultiText? Aiming to program a text editor as ped which could change attributes of any text, how can I succeed that without by selecting text but by selecting text by lines?
Thanks a lot!