★ wanayoo — archive 1999 http://codeguru.developer.com/editctrl/editpad.shtmlNouvelle recherche | Portail wanayoo
EarthWeb
Developer.com Click Here!
Click Here!
Find:
 

EXPERT SEARCH
-----
Site
windows 2000
visual c++
java
visual basic
javascripts
recommend it
 
Contest
mfc codeguru
submission guidelines
 
Book
thinking in c++
stl programmer's guide
reviews
 
Interact
forums
newsgroups
guest book
jobs
jokes
open faq
what's new
 
Other
about
links
newsletters
privacy
tools
 

-----
Visual C++ by E-mail:

Get the weekly e-mail highlights on
Visual C++!
-----



EarthWeb Sites:
CROSSNODES
DATAMATION
DEVELOPER.COM
DICE
DISCUSSIONS
EARTHWEB.COM
EARTHWEB DIRECT
EARTHWEB EVENTS
ERP HUB
GAMELAN
GOCERTIFY
HTML GOODIES
INTRANET JOURNAL
ITKNOWLEDGE
IT NEWS
JARS
JAVASCRIPTS.COM
OPEN SOURCE IT
PERL JOURNAL
SYSOPT.COM
SUPPORTSOURCE
TECHCRAWLER
Y2KINFO

EarthWeb Worldwide

   

EditPad - Syntax Highlighting Editor


This article was contributed by Ferdinand Prantl.

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

Description

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:

    editpad_exe.zip

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

and the second one of complete source tree:

    editpad_src.zip

        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.

Acknowledgements

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:

Downloads

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

History

Date Posted: September 1, 1999
Date Last Updated: January 21, 2000

Comments:

Add Comment

   

Give them a visit Click Here!

Click Here!

INSTANT EXPERTS!
Savvy IT Pros report on SupportSource. Take a look inside the largest vault of multi-vendor computing specs ever assembled. Click here for an In-depth Report,.

Learn about Free & Open Source software at the Bazaar Conference & Expo!,
December 14-16, 1999 in New York City! Click here for more information.

For tons of Windows technology resources, check out the Windows Programming directory.

Go to Fatbrain for the NEWEST and BEST technical books for IT professionals.

Get Linux Utilities for ONLY $34.95 at EarthWeb Direct.

Give them a visit Click Here!

Click Here!

Click Here!

Click Here!

Home About Us Search Subscribe Advertising Info Contact Us FAQs
Use of this site is subject to certain Terms & Conditions.
Earthweb's statement regarding our users' right to privacy.
Copyright ©1996-2000 EarthWeb Inc.. All rights reserved. Reproduction in whole or in part in any form or medium without express written permission of EarthWeb is prohibited.