7 Replies - 360 Views - Last Post: 01 May 2014 - 09:39 PM Rate Topic: -----

#1 Veil123  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 4
  • Joined: 30-April 14

C# HTML Editor wit changable tags

Posted 30 April 2014 - 04:59 PM

Like first, hello! I am having a hard time finding a solution for my problem. I have tried several HTML editors but none of them is giving me the thing that I need (or maybe I am missing something).
What I need? - I am using a custom made HTML editor in C# (Visual Studio 2010). I need to be able to change the output tags of that HTML at the end (as output). For example with the current HTML editor that I have (it's the same with all of them as they use the mshtml library), when I will color up a text it will look like:
<FONT color=#FF00000> Some Text Here </FONT>

What I want to do is to be able to change the above to something like:
<font color="#FF00000"> Some Text Here </font>

(different caps, quotes before and after the color, etc, etc...). I need this when I will get the output of the HTML (when pressing a button to print it in a message box or something).
Thanks!

Is This A Good Question/Topic? 0
  • +

Replies To: C# HTML Editor wit changable tags

#2 modi123_1  Icon User is online

  • Suitor #2
  • member icon



Reputation: 8943
  • View blog
  • Posts: 33,537
  • Joined: 12-June 08

Re: C# HTML Editor wit changable tags

Posted 30 April 2014 - 05:03 PM

Okay.. so what does the code look like?
Was This Post Helpful? 0
  • +
  • -

#3 Veil123  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 4
  • Joined: 30-April 14

Re: C# HTML Editor wit changable tags

Posted 30 April 2014 - 05:06 PM

View Postmodi123_1, on 30 April 2014 - 05:03 PM, said:

Okay.. so what does the code look like?


What do you mean? I already gave code example in the 1 post...
Was This Post Helpful? 0
  • +
  • -

#4 modi123_1  Icon User is online

  • Suitor #2
  • member icon



Reputation: 8943
  • View blog
  • Posts: 33,537
  • Joined: 12-June 08

Re: C# HTML Editor wit changable tags

Posted 30 April 2014 - 06:18 PM

Hmmm.. no, what I mean is if your 'custom made HTML editor in C#' is not behaving as you would like folks would need to see that code. For the editor.
Was This Post Helpful? 0
  • +
  • -

#5 Veil123  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 4
  • Joined: 30-April 14

Re: C# HTML Editor wit changable tags

Posted 30 April 2014 - 06:34 PM

View Postmodi123_1, on 30 April 2014 - 06:18 PM, said:

Hmmm.. no, what I mean is if your 'custom made HTML editor in C#' is not behaving as you would like folks would need to see that code. For the editor.


It is just a simple HTML editor as you can find one on google (this one is from MSDN). All of them are "behaving" the same and none of them are giving ANY change to can make after-editing edit, if you understand what I want to achieve...

I am attaching the HTML editor library and you can simply add it to a new project in the toolbar and you can use it. And simply write whatever you want in the text, add color to the text, bold, italic, etc, etc. Then add a button with code like: MessageBox.Show(myRichTextBox.innerHtml) and I hope you get my point of what I want to achieve. Thanks!
Was This Post Helpful? 0
  • +
  • -

#6 modi123_1  Icon User is online

  • Suitor #2
  • member icon



Reputation: 8943
  • View blog
  • Posts: 33,537
  • Joined: 12-June 08

Re: C# HTML Editor wit changable tags

Posted 30 April 2014 - 06:35 PM

So you didn't write this? Look... it's great you found some program somewhere to do sort of what you want.. but it is a little presumptuous to ask folks to make a bunch of updates to it without trying first yourself.
Was This Post Helpful? 0
  • +
  • -

#7 Veil123  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 4
  • Joined: 30-April 14

Re: C# HTML Editor wit changable tags

Posted 30 April 2014 - 06:38 PM

#Didn't attach it successfully in the previous post... I don't have permission to do so, so here is a dropbox link: https://dl.dropboxus...itorControl.rar

View Postmodi123_1, on 30 April 2014 - 06:35 PM, said:

So you didn't write this? Look... it's great you found some program somewhere to do sort of what you want.. but it is a little presumptuous to ask folks to make a bunch of updates to it without trying first yourself.



Dude, I see that you still don't understand what I am having problem with... This is a OPEN SOURCE library and I am using it as a PART for my own program. I need a way to can make after-edit of the HTML.
Was This Post Helpful? 0
  • +
  • -

#8 Momerath  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 1010
  • View blog
  • Posts: 2,444
  • Joined: 04-October 09

Re: C# HTML Editor wit changable tags

Posted 01 May 2014 - 09:39 PM

If it is open source, go into it and change the case of all the HTML tags. Find where it outputs the color code and add quotes.
Was This Post Helpful? 1
  • +
  • -

Page 1 of 1