Teen Programmers Unite  
 

 

Return to forum top

Text Editor w/ C or C++

Posted by Mycroft [send private reply] at November 14, 2002, 06:33:58 PM

Anyone know where i can get the source of a simple text editor in C or C++, preferably for Win32 platform?

Posted by Qubit [send private reply] at November 15, 2002, 01:13:23 AM

The VC++ 6.0 MSDN discs have source code for NotePad and maybe WordPad. If you had access to a source if that, you'd be in luck... otherwise, google google or see if anyone else here can direct you elsewhere.

Posted by DragonWolf [send private reply] at November 15, 2002, 06:57:52 AM

there will be a open source text editor for windows on sourceforge somewhere. Have a hunt arond.

Posted by whizkide [send private reply] at November 15, 2002, 11:32:23 AM

check c++ interest groups. under the exercises i did something and posted some weeks back. ive modified it but my computer is down so i cant post the new one.
whizzzzzzzzzz

Posted by Mike_L [send private reply] at November 16, 2002, 11:49:31 PM

Notepad is a VERY simple application. It is just a simple framework around an EDIT control. The code in Notepad.exe just handles the loading, saving, and the find/replace functions. All of the actual editing is handled by the code in COMCTL.DLL. You might be able to find the source code for that on the MSVC++ CD, but it is likely very complicated.

Posted by buzgub [send private reply] at November 17, 2002, 12:15:19 AM

also, there is such a thing written as part of the http://www.winprog.org/ tutorial.

Posted by regretfuldaydreamer [send private reply] at November 17, 2002, 07:45:56 AM

Sorta related question: How come notepad can only open 60kb or less files?

Posted by CDR700 [send private reply] at November 17, 2002, 08:35:40 AM

Its a strange fact that some editors have editing limits. Most editors such as Programmers File Editor [PFE] have bigger editing limits. Maybe notepad cant use the memory to handle such files bigger than 60kb, thats why i like SunOS the editor on it has almost no file limits.

Posted by CViper [send private reply] at November 17, 2002, 09:32:48 AM

Someone told me that you can edit notepad, so it can open more than 60kb (or whatever).... that would mean, someone hardcoded it to refuse to open files larger than that limit. The WinXP notepad dosen't seem to have that limit either...

Posted by CDR700 [send private reply] at November 17, 2002, 10:22:02 AM

Well thats Microsoft Corporation.Its probably best to stay well away from such things as Notepad and use other tools.

Posted by regretfuldaydreamer [send private reply] at November 17, 2002, 02:07:20 PM

/me reminds everyone that he uses a good editor (Text Pad, its fantastic), better than any crappy Microsoft one ever invented.
/me is insulted anyone would even accuse him of using notepad (remeber to "take a joke" every now and then)

Posted by CDR700 [send private reply] at November 17, 2002, 02:47:13 PM

"Part fools you do not know what you do".In any way editors suit people and I do not assume you do not use notepad as I have no evidence for or against.

I use ConTEXT.

Posted by mop [send private reply] at November 17, 2002, 02:52:08 PM

I like kate, it autorecognizes the language your using and highlights syntax appropriatly.

Posted by regretfuldaydreamer [send private reply] at November 17, 2002, 03:09:22 PM

If people would be willing to put a link to their favourite editor, I would be willing to see if its worth converting. TextPads highlighting is great, but the best syntax corrector I ever saw was the QBasic one.

Posted by Neumann [send private reply] at November 17, 2002, 03:13:46 PM

For good syntax correction, you have to use Microsoft Visual Studio. No other editor does a better job of taking you by the hand while you write code. In fact, with Visual Studio.NET, using Option Strict, 90% of errors are detected at edit time.

I personnaly used EditPlus for a while and now I'm back at using GVim.

Posted by mop [send private reply] at November 17, 2002, 03:27:13 PM

java has good syntax correction

Posted by CDR700 [send private reply] at November 17, 2002, 04:02:01 PM

ConTEXT is good as its easy to use,however to be honest it has bugs in the custom highlighting : http://fixedsys.com/context/

http://directory.google.com/Top/Computers/Software/Freeware/Editors/?il=1 they have the complete listing of freeware editors there.

Posted by mop [send private reply] at November 17, 2002, 04:03:45 PM

kate is just one of the few thousands of text editors that come with KDE, so I'm not going to bother searching for it.

Posted by CDR700 [send private reply] at November 17, 2002, 04:06:44 PM

May i also state that I use Windows 2000 Pro ( I have Solaris on my server machine ) so ConTEXT , dear freind , is Windows 32 only ( might work on win32s ).

Posted by DragonWolf [send private reply] at November 18, 2002, 07:18:33 AM

I'm also a TextPad fan, it has alot of Syntax libraries already available on the net, its widely used, has lots of scripts and can easily be integrated with any compiler. It would be nice if they included some project management stuff like Visual Studio has, and perhaps a scripting engine (though you can do this externally anyway).

I believe Textpad is on 2/3 different platforms (Windows/Linux and err something else) but I could be wrong ^^

Posted by jay_dee [send private reply] at November 18, 2002, 03:25:04 PM

ConText is the best.

Posted by CDR700 [send private reply] at November 18, 2002, 04:09:55 PM

Is TextPad not shareware,well i dont like cracking shareware nor paying for it so i just use free software.I just dont understand why PFE (mentioned in vladimir_l2's FORTRAN for beginners) really caught my eye,but it has NO syntax highlighting - so that a bugger :-(

Posted by regretfuldaydreamer [send private reply] at November 19, 2002, 11:51:15 AM

TextPad is shareware, but it just has a small nagging window that appears for a very short period in the center of the screen(It isn't big and ugly like the normal ones) and a little nag notice comes up after every 100 saves, but it isn't annoying either. Its great!

Posted by CDR700 [send private reply] at November 19, 2002, 05:54:28 PM

I'll stick with my editor,but i'll have a look at TextPad as i sincerely trust your opinion (arent i nice...).

Posted by DragonWolf [send private reply] at November 20, 2002, 04:44:29 AM

hehe the nag window pisses me off, but I still like TextPad out of all the text editors I've used, which isn't actually that many ^^

Posted by regretfuldaydreamer [send private reply] at November 20, 2002, 02:59:30 PM

Doesn't piss me off, unless its because I haven't updated it in a year and they've added a new super-piss-you-off-nagger in there.

You must be logged in to post messages and see which you have already read.

Log on
Username:
Password:
Save for later automatic logon

Register as a new user
 
Copyright TPU 2002. See the Credits and About TPU for more information.