Thread: creating very simple text editor using c

  1. #1
    Registered User
    Join Date
    Nov 2004
    Posts
    2

    Smile creating very simple text editor using c

    Hello evryone, I just joined this forum and just starting learning c
    i want to create very simple text editor.
    The user will just type the text and choose option menu to process the text such as searching for word

    how to make a simple window , background,text color
    where i can find simple explanation about it ?
    i have try to search it but i still don't find
    regard
    kris

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    Which OS and compiler are you using?

  3. #3
    Registered User
    Join Date
    Jun 2004
    Posts
    722
    Quote Originally Posted by if13121
    just starting learning c
    i want to create very simple text editor.
    You still have much to learn. Doing a text editor isn't trivial. Meanwhile good luck

  4. #4
    Registered User
    Join Date
    Nov 2004
    Posts
    2

    Unhappy

    Quote Originally Posted by Salem
    Which OS and compiler are you using?
    windows turbo c
    but i want to make the other in oder to be run in linux using gcc
    and i really want to know how to make a simple window , background,text color
    please help
    Last edited by if13121; 11-24-2004 at 12:33 AM.

  5. #5
    The C-er
    Join Date
    Mar 2004
    Posts
    192
    Hello if13121,

    If you're new to windows programming (like me) then you'll find the learning curve pretty steep, at least to the point where you can write simple applications. I would get a good book on windows programming + have a look for windows API tutorials on the web.

    A good book is Programming Windows by Charles Petzold (Microsoft Press).

    However, I would recommend getting pretty comfortable with the C language itself, perhaps by writing some DOS code first.

    xErath is right; a very simple text editor is a quite complex programming challenge. I know because I want to write one for myself (one day).

  6. #6
    Registered User
    Join Date
    Nov 2004
    Location
    Egypt
    Posts
    1

    Read It

    This May Help You !
    Last edited by Salem; 11-25-2004 at 09:50 AM. Reason: Snipped suspect attachment

  7. #7
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    Please don't post your rip-off of http://computer.howstuffworks.com/c.htm

  8. #8
    Registered User
    Join Date
    Oct 2010
    Posts
    1

    i need some advices

    hello. i'm studying maths & computer science. for homework i need to write ideas for programming the simple text editor. can you write me some advices? it doesn't matter on which programming language (C, Pascal, PHP, JavaScript).

  9. #9
    Registered User
    Join Date
    Sep 2004
    Location
    California
    Posts
    3,268
    Please don't bump threads that are 6 years old.
    bit∙hub [bit-huhb] n. A source and destination for information.

  10. #10
    Registered User
    Join Date
    Sep 2006
    Posts
    8,868
    Welcome Lebdim!


    A simple text editor for Turbo C? Not all that difficult, depending on how "simple", simple is. Mine was very simple. I wrote one ages ago, and I'm certainly no programming pro. I used #defines for things like left and right margins, backspace, enter, top row, bottom row, and used several variables, of course.

    The idea was to have a "window" of the editor, that was displayed on screen, and then have an area above and below in (in the char array), that was not displayed. That allowed text to scroll up and down (no scrolling left and right).

    Imo, the basic editing was not too difficult, but even simple text editors have a plethora of features - and that requires a real user interface to be useful.

    You might want to check out the "edit" program (still available in Windows XP), from any console (text) window, for idea's on a good layout.
    Last edited by Adak; 10-19-2010 at 05:28 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Creating a simple Windows game
    By ejohns85 in forum C Programming
    Replies: 1
    Last Post: 05-22-2009, 12:46 PM
  2. Replies: 5
    Last Post: 02-09-2003, 10:03 AM
  3. Replies: 5
    Last Post: 02-01-2003, 10:58 AM
  4. Creating a simple database: is my approach OK?
    By m712 in forum C++ Programming
    Replies: 1
    Last Post: 11-18-2002, 02:27 AM
  5. simple text dialog ok cancel
    By Brian in forum Windows Programming
    Replies: 1
    Last Post: 02-12-2002, 02:20 AM