I need to get a list of tags in a text, make their contents bold, and remove them. Can't figure out how to make it.
E.g. with the following input:
foo [b]bar[/b]
The result should be:
foo bar
I use the following code to extract the tags:
Dim matches = Regex.Matches(OriginalRich.Text, String.Format("(\[{0}\])(.*?)(\[/{0}\])", tag),...
I am applying formatting to selected tokens in a WPF RichTextBox. To do this I get a TextRange that encompasses the token that I would like to highlight. I will then change the color of the text like this:
// Get start and end pointer for token
TextPointer startPointer = run.ContentStart.GetPositionAtOffset(startOffset);
TextPointer end...
I'm uisng a RichTextArea to display my html content in SL 4,I want to underline the content displayed by the control ( without modifying the html) and also attach an event of Onclick on the text . I tried different options i.e using RichTextArea in the content template of a Hyperlinkbutton but as the content of RichTextArea cannot be set...
Not sure how to get around a problem of having to use the CTRL key when dropping a ListBox item into a RichTextBox with EnableAutoDragDrop=true...
Dropping into a TextBox with AllowDrop=true works without the CTRL key.
Using VS2008 .net framework 3.5
...
i am making a project for bulk emailing . In this I have added a richtext box . I want users to enter the email message body in it and want to give them the ability to format .Richtext box should be able to make the content bold,italics, underline , align it right left and center , increase font , decrease font,change color, change the f...
As I enter a character in my RichTextBox, I want to get the next character from the its TextRange.
So here is how I do it:
TextPointer ptr1= RichTextBox.CaretPosition;
char nextChar = GetNextChar();
//we continue until there is a character
while (char.IsWhiteSpace(nextChar))
{
ptr1= ptr1.GetNextInsertionPosition(LogicalDirection.Fo...
I am trying to save some c# source code into the database. Basically I have a RichTextBox that users can type their code and save that to the database.
When I copy and paste from the visual studio environment, I would like to preserve the formating etc. So I have chosen to save the FlowDocuments Xaml to the database and set this back to...
I want to highlight some stuff on a web page and be able to paste it into a richtextbox in C# winforms. I want to then be able to see the HTML code of what I had pasted. Is this possible?
...
Is there an Easy way to implement FIFO in RichTextBox control?
Actually i have a testing tool that produce more than 1000 lines within a minute that is why i want to limit the total number lines and when a new line adds in the control the Last line should be removed.
...
I want to show html contents in my form. I tried to it with rich text box.
rtBox.Text = body;
but it fails.
How to show html contents in rich text box..??
Note: i am using VS-2008 2.0
...
hello,
I have a form that uses Richtexteditor of Flex3 to write in their reply. The reply is then posted to a textarea, where all of the formatting is lost! I have embedded the font since I was doing some tweeening on the text boxes.
I need to find out how keep the formatting intact in the textarea from richtexteditor!
has anybody an id...
I have an Windows.Documents.InlineUIContainerin a RichTextBox, and sometimes it's font size of alignment change when I hit key combination such as Ctrl+Space. I couldn't find any place to handle these events and block them somehow. I don't want to block it in the RichTextBox. I am more looking for a way to block it only on the InlineUICo...
I have a Windows Form with a RichTextBox on it.
The content of the RichTextBox is written to a database field that ist limited to 64k data.
For my purpose that is way more than enough text to store.
I have set the MaxLength property to avoid insertng more data than allowed.
rtcControl.MaxLength = 65536
Howevery, that only restricts t...
I need to turn spellcheck on for a richtextbox, and set the language to one the user has picked from a drop down. For now, I'm just testing it by building the richtextbox in xaml and providing a language to the xaml language attribute.
I've read two different resources and one says I need to set the language attribute, and the other ...
Heyo, I'm messing with converting images to ASCII ones. For this I load the image, use getPixel() on each pixel, then insert a character with that colour into a richTextBox.
Bitmap bmBild = new Bitmap(openFileDialog1.FileName.ToString()); // valid image
int x = 0, y = 0;
for (int i = 0; i <= (bmBild.Width * bmB...
I use Tinymce with BBcodes plugin so the tags used in the editor are [B] [U] [I] [quote] [color].
If you are familiar with TinyMce there is a great option to filter all unwanted tags when pasting to the editor.
Unfortunately i think this is not working for BBcodes mode, what i want is to remove any <TAGS> Or Other Unwanted BBcodes such...
Has anyone figured out the best way to persist a WPF and Silverlight RichTextBox content so that it can be shared between the two? I haven't had the time to test through this so I wanted to see if anyone else has.
I currently have a WPF applicaiton that saves the content of a RichTextBox as a blob in the database using the following co...
I put the RichTextBox in my Silverlight App. Do I have to create my own set of buttons to use it? I want to have a standard set of editing buttons for the text box.
...
The TextBlock control has LineHeight. Does anyone know a good way to set LineHeight in the RichTextBox Control in Silverlight 4?
...
I've looked at free javascript html editors, and I haven't found any that I feel handle links intuitively. I like the way the gmail editor does it (also the same way blogger.com) does it.
Does anyone know if there is an open source editor that handles linking that way? Jquery would be preferable.
...