EditPad - Syntax Highlighting Editor


Desktop-as-a-Service Designed for Any Cloud ? Nutanix Frame

EditPad is free syntax highligting programmer's editor I'm using heavily at work. And my several friends too :-).

SDI Sample ImageMDI Sample Image

Development environment: MS-VC6 SP3, MS-Windows 98
Target environment: Win32 platforms


EditPad doesn't bring so much new programming techniques, I've just used "the best" of sources at this site and added some my work to make an editor for programmer's all-purpose usage. I often needed to edit various files in a small SDI editor and Notepad was too simple for me. I wanted to have regular expressions and other useful things. At last I made MDI version too and now I'm writing code in that one instead of in the MSVC IDE ;-).

This editor isn't full of GUI "beautifiers". I made it as simple as I considered it to be usable. It's supposed to be used often for work. Some features of EditPad:

  • Notepad replacement (editpads - SDI version)
  • ...pad for more files editing at the same moment (editpadm - MDI version)
  • Printing support (not coloured)
  • Recently used files remembering
  • Different settings for different kinds of files (must differ by extension)
  • Regular expressions for searching and replacing
  • Autoindent and brackets automatic indenting
  • Autocomplete the rest of current word
  • Case changes
  • Using tabs/spaces
  • Highlighting syntax of source code
  • Toggling source/header files in the editor

Some coding techniques

  • Syntax coloring editor component I extended with:
    • more highlighting languages
      (Plain text :-), BASIC (Visual), Batch (MS-DOS), C/C++, DCL (AutoCAD's DCL), FORTRAN, HTML, Java, LISP (AutoCAD's AutoLISP), PERL, REXX, Resources (MS-Windows), SGML, Shell script (UNIX), SIOD, SQL, TCL, TEX)
    • brackets autoindenting (ANSI or GNU mode)
    • automatic inserting of the space before left parenthese
    • automatic completing of the rest of current word after the word found in front of or in back of the cursor position
    • opening source/header file which belongs to currently opened document
    • patches and extensions from comments at Andrei's page applied
  • Notifying about externally modified or deleted files
    (I found two articles about it at this site but no one worked for me. I "discussed" the problem with CFileChangeEvent and MSDN and wrote new class CFileEvent almost from scratch.)
  • Full Screen mode implementation

Distribution form

You can get two zipped archives at the bottom of this page. The first one consists of installable executables:


        distrib/    - files to copy somewhere onto your disk
        readme.txt  - a short description of the package

and the second one of complete source tree:


        batch/      - several files to copy to root of this archive to automate
                      some developing tasks
        both/       - sources for both SDI and MDI versions (with project)
        both/       - sources for both SDI and MDI versions (with project)
        distrib/    - a placeholder for built executables and help
        multi/      - sources for MDI version (with project)
        single/     - sources for SDI version (with project)
        readme.txt  - a short description of the package

You will need following libraries to run EditPad: msvcrt.dll, msvcp60.dll and mfc42.dll.
If there're no such files in your windows system directory you can get them from Microsoft or from my GUI tools page, where is the link to EditPad primary site too.


I have to thank very much all people at this site for their work - I learnt here quite a lot. These persons helped me when I was writing EditPad - thanks them once more:


Download executable files - 283 Kb
Download source archive - 343 Kb


  • error C2002: invalid wide-character constant

    Posted by Legacy on 01/29/2004 08:00am

    Originally posted by: albert

    When I compile Mul Doc Version, There is errors,such as:
    F:\UI\EditCtrl\editpad_src\edtlib\cs2cs.cpp(25) : error C2002: invalid wide-character constant
    which indicate :
    {_T ("CP1250"), _T ("\xc1\xc8\xcf\xc9\xcc\xcd\xd2\xd3\xd8\x8a\x8d\xda\xd9\xdd\x8e\xbc\xc0\xc5\xd4\xd6\xdc\xc4\xe1\xe8\xef\xe9\xec\xed\xf2\xf3\xf8\x9a\x9d\xfa\xf9\xfd\x9e\xbe\xe0\xe5\xf4\xf6\xfc\xe4\xdf\xa7\x26\x5c\x22\x3c\x3e\x74\xa0\x7c\x63\x52\xb0\x2b\xb6\x7\0\0\0\xd7\0\xf7\0")},
    How to solve it?
    Thank you very much.

  • Problems on updating windows on WINNT4

    Posted by Legacy on 07/23/2003 07:00am

    Originally posted by: horming

    There is a problem running this compiled code on WINNT4.
    The horizontal scrolling is not fully repaint all areas on the window.

    I have found this bug substained on previous releasing source code as well. Please help

  • Explorer.exe eats up CPU process

    Posted by Legacy on 07/06/2003 07:00am

    Originally posted by: Newbie

    I was wondering why your editpad eats up a lot of CPU resources when the windows is maximized view?

    Under my observation, explorer.exe will boost CPU usage upto 40% when the editpad is in maximized view scrolling.

    Can we avoid this?

  • why dont support IME ㅡ.ㅡ

    Posted by Legacy on 07/21/2002 07:00am

    Originally posted by: sm

    i hope to solve IME

    when input JAP language...
    happen error..

    error -> broken word,,
    when select word broke,

    and when read unicode, dont read unicode file..

    ps: i do not unicode compile..
    this is a problem ,,?

  • Source size is 1.04 Mb, not 343 Kb!!!!!

    Posted by Legacy on 07/19/2002 07:00am

    Originally posted by: Wraith

    It really is!

  • bcglib compilation problems

    Posted by Legacy on 07/01/2002 07:00am

    Originally posted by: smartfox

    when i compiled the bcgcontrolbar.dsw to generate the bcgcb453u.lib, VC6.0 gives me an error:
    "F:\源码分析\Edit\editpad_src\bcglib\BCGDockContext.cpp(67) : error C2065: 'LAYOUT_LTR' : undeclared identifier".

    Can you tell which header file include the declaration of 'LAYOUT_LTR'. thanks

  • Printing Problems

    Posted by Legacy on 06/29/2002 07:00am

    Originally posted by: BN37

    The text from a file is able to be printed, but there is one major problem. The print is extremely small. Is there anyone who can give me some suggestions on where and how to change the size of the printing output?

    Thanks in advance,


  • Missing mfc42u.lib and mfc42ud.lib

    Posted by Legacy on 06/18/2002 07:00am

    Originally posted by: BN37

    When I compile any of the projects I get a link error that says it is missing the mfc42u.lib and mfc42ud.lib files. Could anyone help me?



  • Another Compilation Problems

    Posted by Legacy on 05/18/2002 07:00am

    Originally posted by: lava_sdb

    when i Compile this programe
    VC6.0 keeps on giving me an error saying
    F:\example\vc\edit_pad\edtlib\cs2cs.cpp(27) : error C2002: invalid wide-character constant

    Can you tell me what's reseon and how to resolve it?

  • may God bless u if, u believe in one

    Posted by Legacy on 04/03/2002 08:00am

    Originally posted by: Edd

    I certainly don't.

  • Loading, Please Wait ...

  • You must have javascript enabled in order to post comments.

Leave a Comment
  • Your email address will not be published. All fields are required.

Most Popular Programming Stories

More for Developers

RSS Feeds

Thanks for your registration, follow us on our social networks to keep up-to-date