Use the JadeRichText class find and replace methods to search for and replace text dynamically at run time. Alternatively use the JadeRichText class findReplaceDialog to display a dialog allowing the user to enter search and replacement text.
Use the getLine method to return a string containing the specified line as rich text or plain text.