Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
|
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 10th, 2008, 11:43 PM
Registered User
 
Join Date: May 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Regd: Issues with designing text diff form

Hi,
     I wished to do a sample text diff application using c#.Am facing the issue of changing the font of the diff chars

    Rich text box i wont be able to do as it supports rtf format so when a user is using rtf files to get differentiated it willdisplay or interpret it wrongly and in addition to that it supports max of 32 KB only.

    Web browser control is better and easy for my application but the issue comes when comparing the html code.
    it will parse the tags for display.

   How about using datagridview for this Is it advisable to use this.Putting every char in a cell and changing the
   background of the diff chars.

  Please advice me in this.

Thanks and Regards
Sezhian.gk

 
Old May 11th, 2008, 11:30 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

What is the target application type? Web/Winform?

I don't see how using a web browser would be a problem. You simply need to make sure you HtmlEncode all the text before putting it to the browser.

Are you doing this to learn it or because you need a diff viewer? There are many programs out there already that have very good diff algorithms. I would be surprised if you couldn't find a .NET user control for this.

-Peter
compiledthoughts.com





Similar Threads
Thread Thread Starter Forum Replies Last Post
Issues Highlighted Text tready Access VBA 2 May 22nd, 2006 10:27 AM
Help needed in designing maintenance form method Access 1 June 30th, 2005 02:35 PM
How to search for text in a diff col in Excel chiefouko Excel VBA 3 September 29th, 2004 11:42 PM
Forcing a new rec in a subform from a diff form DrSnuggles Access 1 September 15th, 2004 10:13 AM
read text file to exact diff depts kud Excel VBA 2 June 4th, 2004 05:37 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.