4 Replies - 2992 Views - Last Post: 03 December 2008 - 08:29 AM Rate Topic: -----

#1 asit_dhal  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 28
  • Joined: 02-December 08

text highlighting feature

Posted 03 December 2008 - 05:19 AM

I am developing a notepad. Till now its very similar to notepad in windows.

Can anyone suggest me how to add some text highlighting features in this ???? :P
Is This A Good Question/Topic? 0
  • +

Replies To: text highlighting feature

#2 eclipsed4utoo  Icon User is offline

  • Not Your Ordinary Programmer
  • member icon

Reputation: 1524
  • View blog
  • Posts: 5,960
  • Joined: 21-March 08

Re: text highlighting feature

Posted 03 December 2008 - 07:16 AM

are you using a RichTextBox control for the "body"?
Was This Post Helpful? 0
  • +
  • -

#3 maffelu  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 41
  • View blog
  • Posts: 190
  • Joined: 21-August 08

Re: text highlighting feature

Posted 03 December 2008 - 07:57 AM

What are you going to highlight?
Code or just words?
Was This Post Helpful? 0
  • +
  • -

#4 asit_dhal  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 28
  • Joined: 02-December 08

Re: text highlighting feature

Posted 03 December 2008 - 08:24 AM

View Posteclipsed4utoo, on 3 Dec, 2008 - 06:16 AM, said:

are you using a RichTextBox control for the "body"?



Now I am using multi line text box.

What is the advantage over rich textbox over textbox ???

View Postmaffelu, on 3 Dec, 2008 - 06:57 AM, said:

What are you going to highlight?
Code or just words?


It will be only highlighting keywords in that programming language ?????

I am attaching the file with this reply ...
Was This Post Helpful? 0
  • +
  • -

#5 jacobjordan  Icon User is offline

  • class Me : Perfection
  • member icon

Reputation: 113
  • View blog
  • Posts: 1,499
  • Joined: 11-June 08

Re: text highlighting feature

Posted 03 December 2008 - 08:29 AM

This should be what you want:
http://www.codeproje...ghlighting.aspx
It is a syntax highlighting rich text box designed for highlighting programming languge syntax written in C#.

The advantage of a rich text box over a standard text box is that it provides more formatting options. It can open .rtf files, which can contain text formatting similar to formatting found in word documents.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1