tag:blogger.com,1999:blog-2441850399540300710.post5289587357652399922..comments2024-02-17T03:47:06.818-08:00Comments on CraigBlog: RichTextEditorCraig Anderahttp://www.blogger.com/profile/17084199593129216563noreply@blogger.comBlogger21125tag:blogger.com,1999:blog-2441850399540300710.post-24941051489492736202007-06-23T08:24:00.000-07:002007-06-23T08:24:00.000-07:00i'd really like richtext editor.!!!i'd really like richtext editor.!!!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-2441850399540300710.post-43266607935140547962005-05-26T11:06:00.000-07:002005-05-26T11:06:00.000-07:00You can have whatever you want...but it'll be ...You can have whatever you want...but it'll be up to you to implement it. :) Have a look at the sample that ships with the code - it parses and updates stuff based on syntax. You could do something similar.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-2441850399540300710.post-20660795248196745342005-05-26T09:03:00.000-07:002005-05-26T09:03:00.000-07:00Just found your website, this is just what i have ...Just found your website, this is just what i have been looking for, for my code editor :)<br /><br><br /><br>One quick question: Can i have comment highlighting? e.g: if the user types...<br /><br><br /><br>// This is a comment,everything typed after this will be color highlighted<br /><br><br /><br>Thanks,<br /><br>Joe.<br /><br>Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-2441850399540300710.post-22181059915418558842004-11-10T03:21:00.000-08:002004-11-10T03:21:00.000-08:00Thanks. So far it has been pretty interesting. It&...Thanks. So far it has been pretty interesting. It's just one of those situations where RichTextBox is quirky enough that I keep expecting to run into something that I *can't* code my way around. Double-click was one that almost killed me - I had to rewrite all the mouse click code to fix that one. <br /><br><br /><br>Anyway, I need the control for FlexWikiPad, so I'll continue to work on it. Next up: paragraph formatting. Then a round of intense bugfixing, and then I'll call it 1.0.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-2441850399540300710.post-49682139735839851552004-11-10T02:09:00.000-08:002004-11-10T02:09:00.000-08:00Thanks, that did the job. Great work.
Keep it u...Thanks, that did the job. Great work. <br /><br><br /><br>Keep it up. I hope that it is not that bad of a project to work on and am hoping that it is not really the bane of your existence because I really like it thus far.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-2441850399540300710.post-73057529142295904742004-11-09T06:29:00.000-08:002004-11-09T06:29:00.000-08:00OK. I fixed it. The changes will appear in the nex...OK. I fixed it. The changes will appear in the next release, which I'm trying to shove out this week. I'll check everything in now so you can grab the source if you need it right now.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-2441850399540300710.post-44199817568557335772004-11-09T04:08:00.000-08:002004-11-09T04:08:00.000-08:00Ah, OK, I didn't see the problem until I start...Ah, OK, I didn't see the problem until I started typing somewhere in the middle. Now I can totally reproduce the problem. <br /><br><br /><br>Sigh. This one is obviously a major bug. I was planning on doing a release this week, but I'll have to I'll see what I can do about it first. <br /><br><br /><br>I have to tell you, RichTextBox is becoming the bane of my existence. It *almost* doesn't suck.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-2441850399540300710.post-62632027089005207382004-11-09T02:27:00.000-08:002004-11-09T02:27:00.000-08:00I did some additional testing on your sample app. ...I did some additional testing on your sample app. I don't think that I modified the code in any of my testing. <br /><br><br /><br>If you have the syntax highlighting on, paste a large amount of text in the control such that you are scrolling. When you type into the control(not on the top line) it will either scroll your cursor to the top if nothing is highlighted, or it will try to scroll towards the last syntax highlited text while keeping your cursor on screen.<br /><br><br /><br>If you have horizontal scrolling enabled, it will also scroll horizontally, which is even more distracting.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-2441850399540300710.post-46607577273428158122004-11-08T15:04:00.000-08:002004-11-08T15:04:00.000-08:00I don't get that behavior in the sample app th...I don't get that behavior in the sample app that ships with the control. Are you doing something different from what I'm doing in RichTextEditorSamples?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-2441850399540300710.post-19065755361526401392004-11-08T11:52:00.000-08:002004-11-08T11:52:00.000-08:00I like what you have done with this and I would li...<br>I like what you have done with this and I would like to use it in a utility for SQL coding. However, I find it annoying that after the control has done it's syntax highliting, that it causes the current cursor location to scroll to the top of the edit control. I may not be doing it completely right as that I am still parsing the whole text after every keystroke. Is there a way to stop that behavior? It is very distracting.<br /><br>Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-2441850399540300710.post-61081517317292641532004-10-21T11:28:00.000-07:002004-10-21T11:28:00.000-07:00It should be backwards compatible, since it derive...It should be backwards compatible, since it derives from the standard control. As far as fast, well, I did my best - let me know if you have any problms with it.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-2441850399540300710.post-91717102792827934442004-10-15T17:05:00.000-07:002004-10-15T17:05:00.000-07:00At some point in any WinForms project, you're ...At some point in any WinForms project, you're bound to need either: WYSIWYG text entry areas with text formatting Quick and dirty printed report generation The obvious choice for both of these things is HTML. No problem! I'll just...Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-2441850399540300710.post-44282539557757832192004-10-15T05:32:00.000-07:002004-10-15T05:32:00.000-07:00Yes. Word wrap is supported. In fact, you can choo...Yes. Word wrap is supported. In fact, you can choose whether or not you want it via the WordWrap property.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-2441850399540300710.post-52213403960969510382004-10-15T05:13:00.000-07:002004-10-15T05:13:00.000-07:00One quick question: does this support text wrappin...One quick question: does this support text wrapping? Syncfusion has a full-featured IDE-like editor control that I was trying to use for on-the-fly spell checking in my application (let's hear it for red wavy lines), but they seemed never to work out the kinks for text wrapping. Does this?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-2441850399540300710.post-22567448977737219652004-10-15T04:31:00.000-07:002004-10-15T04:31:00.000-07:00Good ol' Lutz. A few observations, though:
1...Good ol' Lutz. A few observations, though: <br /><br><br /><br>1) Having looked at the source code a bit, it appears to me that this is entirely an interop wrapper around IE. <br /><br>2) It doesn't provide intellisense-type popup error handling, which I need. <br /><br>3) It doesn't seem to provide a way to handle clicking on a link, which I also need. <br /><br><br /><br>#1 isn't much of a concern for my usage in FlexWikiPad. #2 & #3 are must-haves. <br /><br><br /><br>Since there's no way I'm going to work on a GotDotNet project again, and since I just experienced first-hand what it takes to move a GDN project to SourceForge, I'm in a bit of a quandry. I'd like to see if I can get Lutz's thing to work, since using an HTML-based editor makes waaay more sense in FlexWikiPad than an RTF-based one. But I need for the licensing to work out so I can basically take his code, modify it, and re-release it under the CPL. The problem is, I'm not sure that the Shared Source license allows for that. <br /><br><br /><br>Looks like I'll need to contact Lutz and see what we can work out. Unless someone out there can interpret the GDN license for me?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-2441850399540300710.post-52641798376973063462004-10-15T03:12:00.000-07:002004-10-15T03:12:00.000-07:00So, is it an option for someone to write a managed...So, is it an option for someone to write a managed wrapper around the Gecko engine that Firefox uses? If you wrote in it a combination of Managed C++ and C#, you could probably get it done relatively quickly.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-2441850399540300710.post-40616269041299664652004-10-14T18:38:00.000-07:002004-10-14T18:38:00.000-07:00Well, one reason we need a managed HTML rendering ...Well, one reason we need a managed HTML rendering engine-- and I'll admit, this is a purely selfish reason-- is the NINE MEGABYTE interop dll that gets generated when you reference IE in .NET. As a developer of smart client apps, that's pretty much out for us. We'd have to spool down a ~9mb interop DLL, via HTTP, to every client at least once.<br /><br><br /><br>Like any self-respecting developer, I hate my users, but not that much. Yet.<br /><br><br /><br>I guess what I object to most is that we have *one* option, IE interop, and that sucks. Having two or three different HTML rendering engines I could access from .NET code would be nice, even if they were all interop-y.<br /><br><br /><br>In the long term, all code should be managed code, so it's really just a matter of time and patience, I guess.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-2441850399540300710.post-89698734221097350442004-10-14T02:21:00.000-07:002004-10-14T02:21:00.000-07:00You can choose to completely ignore RTF with RichT...You can choose to completely ignore RTF with RichTextEditor (in fact that's the preferred programming model), so I'm not sure I understand your "Ugh". Can you explain further? <br /><br><br /><br>As far as using an HTML rendering engine instead, I think that's a great idea. Why does it need to be fully managed, though? Every single control in WinForms is interop to an unmanaged piece of code, and that seems to work well enough. Also, do you think that an HTML-based engine would give you a reasonable way to enter and edit text, as you would do in scenarios where you're building an IDE? That's the primary usage pattern I'm interested in right now.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-2441850399540300710.post-90861186321593880802004-10-13T23:07:00.000-07:002004-10-13T23:07:00.000-07:00Jeff - I agree! Why has noone made a table editor ...Jeff - I agree! Why has noone made a table editor on par with Dreamweaver? Microsoft is surely aware that every table editor they've ever made sucks...Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-2441850399540300710.post-19770841848738345602004-10-13T18:38:00.000-07:002004-10-13T18:38:00.000-07:00Ugh, RTF. I feel your pain, but..
What the world ...Ugh, RTF. I feel your pain, but..<br /><br><br /><br>What the world needs now, and I mean right f'ing now, is a fully managed HTML rendering engine. Wrapping IE in blankets of interop is not a valid solution. We need to bite the bullet and do it.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-2441850399540300710.post-37595554094916745462004-10-12T20:26:00.000-07:002004-10-12T20:26:00.000-07:00Ignore my comment above .. I missed the part where...Ignore my comment above .. I missed the part where you say you were using the Scintilla stuff first...<br /><br><br /><br>:)<br /><br><br /><br>Anonymousnoreply@blogger.com