1. Computing

Create A Notepad Like Application In Delphi

From Zarko Gajic, About.com GuideSeptember 7, 2012

Follow me on:

in Delphi App Ideas :: Delphi Notepad I'm certain you know what Notepad is! A simple text-only (plain text) editor for Windows. It has been included in all versions of Microsoft Windows since Windows 1.0 in 1985.

Notepad operates plain TXT files, having no format tags or styles (like RTF).

If you ever noted that Notepad does not have all the features you would need or like to have in a text editor, why not write one yourself (in Delphi of course)?

Here's how:

And some related:

Comments
September 7, 2012 at 9:14 am
(1) Warren P says:

A nice open source editor component that you can use for your in-house editor project is SynEdit. It includes a pretty nice “Multi file and single file editor” set of demos which can be your starter code too.

http://sourceforge.net/apps/mediawiki/synedit/index.php?title=SynEdit_Home_Page

Once you’ve built yourself an editor, a suggested task I would recommend is to find some manual task that you do (like making a particular search-and-replace-but-only-in-a-specific-context command) that currently is difficult for you to do, but which you could automate.

For example, once I needed to go through 1000 pascal files, and find all literal strings that contained the word “Fred” and change it to “Dave” (not the actual values, of course!). But I didn’t want procedures and variable names to be changed. Only strings that were inside single quotes. A quick “string literal finder and replacer” class, and a “load all files in a directory” function, and a problem which is far beyond the capabilities of regular expressions was DONE.

Saved me days of STUPID manual work!

W

Leave a Comment

Line and paragraph breaks are automatic. Some HTML allowed: <a href="" title="">, <b>, <i>, <strike>
Top Related Searches viernes septiembre notepad delphi

©2013 About.com. All rights reserved.