<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>editing selected text within a rich text box</title><link>https://www.infopathdev.com:443/forums/thread/12671.aspx</link><pubDate>Thu, 10 Nov 2005 18:31:51 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12671</guid><dc:creator>cjellick</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12671.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=12671</wfw:commentRss><description>Hi,&lt;br /&gt;&lt;br /&gt;Can someone tell me how I can capature text in a rich text box that has been highlighted by the user?  I'm using JScript.&lt;br /&gt;&lt;br /&gt;Here's what I want to do:&lt;br /&gt;Ideally, the form should allow the user to highlight some text and click a button.  Then, the highlighted text will be automatically wrapped in in an xml tag.  Additionally, it would be nice if I could change the font color of the text that was wrapped.&lt;br /&gt;&lt;br /&gt;One more thing: I realize this should be a relatively simple task and it would be easy this was for an html document, unfortunately its not as obvious for Infopath.&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;Craig</description></item></channel></rss>