Hi:
An interesting exercise -- allowing folks to type and use formatting cosmetics in a text box and then keep those HTML-based formatting instructions intact or converting them to PDF formatting.
And you're using the BI Platform and Stored Processes. No small task, there!
All I can recommend is that you work with Tech Support. When you work on the Platform and with stored processes, depending on your client application, some clients use SAS style templates, some use CSS, some use style definitions that are defined in the XML that's used by Tomcat. So before you go too far down this road, I would make sure that what you want to do can even be done in the context of a stored process and, if so, what client applications will support what you want to do with the conversion of this text box to other forms (email, PDF, etc).
As for including demo code. Scott very kindly posted a link that explains how to post code -and- HTML -and- have the indention and "code" maintained. If you plan to post HTML, you should convert all the < tags to < and all the > tags to >, as explained HERE (forum link posted here for your convenience):
http://support.sas.com/forums/thread.jspa?messageID=27609毙
However, I think that you really should work with Tech Support for some guidance on whether what you want to do is even do-able in the context of the BI Platform and stored processes, rather than post a hunk o'HTML here or send it to me directly. I'm about to go out of town to teach, so will not have much time to respond to emails.
cynthia