Click here to Skip to main content
11,647,600 members (63,192 online)
Click here to Skip to main content

Codez Bank: A code snippet bank application

, 30 Jun 2008 CPOL 55.2K 1.9K 95
Rate this:
Please Sign up or sign in to vote.
An application that stores and manages useful code snippets and keeps them always handy.

CodezBankFolders.PNG

Folders view

CodezBankCode.PNG

Snippet view

Introduction

CodezBank is just a small application that stores source code snippets organized in a hierarchical manner with basic search ability. You just copy and paste the code snippet into or from this application via the Clipboard. If you have a bag of coding tricks, then you want to keep them in this app.

Background

Every time I work on some project, I always find myself digging through books and my old files to see how I did one or another piece of code. Although it works, it usually requires a lot of time. Sites like CodeProject keeps code always available, but if I am offline or on a remote location without the connectivity, then I have always wanted a small application that keeps the code snippets organized and handy.

Points of Interest

This application is a medium to advanced MFC project that covers advanced usage of libraries provided by Microsoft.

  • Storing data in a binary tree.
  • SDI Explorer like interface with multiple views in the right pane (Color syntax and List view).
  • Colored syntax editor.
  • Tree drag drop that rearranges the data in the binary tree.
  • Usage of Regular Expressions provided by the vbscript.dll #import.

History

Version 1.0.0.1 - 4/7/08:

  • Initial code.

Version 1.0.0.2 - 4/22/08:

  • Fixed undo bug in the code editor. Thanks to ndrsoft for pointing out a solution.

1.0.0.3 - 6/30/08:

  • Added more C++/C keywords as was suggested by the readers.
  • Changed tool bar to have a 256 color bitmap instead of 16 color.
  • Added documentation panel to the Source view. You can put all the explanation down there instead of comments so the code looks cleaner for the eye. I found it useful to paste there the whole MSDN or other documentation page(s) and links. Then, you will have the whole shebang in one tree node.

Bugs

  • Syntax editor very limited as far as undo actions. (I am figuring this out. If anyone knows how to fix that, drop me a note) So do not Ctrl+Z, it won't work. Fixed.
  • Syntax editor currently highlights a subset of C and C++ keywords. I will add VB and C# later.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

steveb
Architect Robotz Software
United States United States
No Biography provided

You may also be interested in...

Comments and Discussions

 
GeneralMy vote of 5 Pin
SafarTimura11-Apr-11 5:51
memberSafarTimura11-Apr-11 5:51 
GeneralMy vote of 5 Pin
Wong Shao Voon2-Jan-11 14:41
memberWong Shao Voon2-Jan-11 14:41 
GeneralConsider adding word wrap to bottom section Pin
Lyle M24-Feb-09 6:05
memberLyle M24-Feb-09 6:05 
GeneralThanks... exactly what I needed Pin
netizenk20-Nov-08 12:00
membernetizenk20-Nov-08 12:00 
Questionthanks and question Pin
vinicius6-Nov-08 6:13
membervinicius6-Nov-08 6:13 
AnswerRe: thanks and question Pin
steveb6-Nov-08 13:11
membersteveb6-Nov-08 13:11 
GeneralNice to have features Pin
Steve H.6-Oct-08 5:36
memberSteve H.6-Oct-08 5:36 
GeneralAttachments Pin
thund3rstruck2-Oct-08 8:29
memberthund3rstruck2-Oct-08 8:29 
GeneralNew Version Won't Run on Vista 64 bit Pin
JeffBilkey7-Jul-08 14:11
memberJeffBilkey7-Jul-08 14:11 
GeneralRe: New Version Won't Run on Vista 64 bit Pin
steveb7-Jul-08 15:53
membersteveb7-Jul-08 15:53 
GeneralWishlist Pin
Warrick Procter1-Jul-08 10:00
memberWarrick Procter1-Jul-08 10:00 
GeneralVery Good Pin
JBAK_CP1-Jul-08 8:45
memberJBAK_CP1-Jul-08 8:45 
GeneralGreat Pin
Saurabh.Garg1-Jul-08 1:27
memberSaurabh.Garg1-Jul-08 1:27 
GeneralRe: Great Pin
steveb1-Jul-08 1:49
membersteveb1-Jul-08 1:49 
GeneralRe: Great Pin
Saurabh.Garg1-Jul-08 2:39
memberSaurabh.Garg1-Jul-08 2:39 
GeneralExcellent Pin
Matt Brunk30-Jun-08 21:59
memberMatt Brunk30-Jun-08 21:59 
GeneralSome keywords missing [modified] Pin
Mario M21-May-08 4:40
memberMario M21-May-08 4:40 
GeneralGreat app. and suggestion Pin
Demian Panello29-Apr-08 2:06
memberDemian Panello29-Apr-08 2:06 
GeneralNice idea, some thoughts... Pin
Jon68z23-Apr-08 3:23
memberJon68z23-Apr-08 3:23 
GeneralRe: Nice idea, some thoughts... Pin
steveb23-Apr-08 3:56
membersteveb23-Apr-08 3:56 
GeneralGreat Application Pin
Steve H.22-Apr-08 10:05
memberSteve H.22-Apr-08 10:05 
Generalbug: undo Pin
ndrsoft19-Apr-08 20:43
memberndrsoft19-Apr-08 20:43 
GeneralRe: bug: undo Pin
steveb21-Apr-08 7:00
membersteveb21-Apr-08 7:00 
QuestionThe application is failed to run on my PC Pin
Bogomolny.Vladislav15-Apr-08 1:38
memberBogomolny.Vladislav15-Apr-08 1:38 
GeneralRe: The application is failed to run on my PC Pin
steveb15-Apr-08 3:33
membersteveb15-Apr-08 3:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.150804.2 | Last Updated 30 Jun 2008
Article Copyright 2008 by steveb
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid