Code Snippets Repository
A code bank designed with Pascal in mind
Overview
CodeSnip is an open source code bank for storing and viewing code snippets. It not only manages, displays and manipulates your own code snippets but it can also incorporate snippets downloaded from the DelphiDabbler Code Snippets Database.
Snippets can be displayed by category, alphabetically or by type. Full details of a selected snippet are displayed.
Designed with Pascal in mind, CodeSnip enables Delphi or Free Pascal code snippets to be test-compiled with any installed version of those compilers. Use this feature to validate the syntax of code without having to start your compiler's IDE.
Code in other languages can be stored in CodeSnip although syntax highlighting, source file generation and compiler checking will not be available.
The database can be searched for snippets that contain specified text or for cross referenced snippets. The snippets to be displayed can also be selected manually. In addition you can search for Pascal snippets that compile under given versions of Delphi or Free Pascal.
Frequently used snippets can be marked as "favourites" for quick access.
CodeSnip can generate and export Pascal source code in various ways:
- Compilable Object Pascal units containing selected snippets from the database can be generated and written to file.
- Individual snippets or whole categories can be written to Object Pascal include files or copied to the clipboard for including in Delphi and FreePascal projects.
- Information about snippets can copied or printed.
- Selected snippets can be exported to files that can be shared with other CodeSnip users.
Units and Pascal include files can also be exported as syntax highlighted XHTML or rich text files. The syntax highlighter can be customized.
Finally, CodeSnip comes in two editions: standard and portable.
More Information
For more information see the FAQ.
News
CodeSnip has its own blog on BlogSpot where you can find news about the latest updates etc.
Download
This program is hosted on in the delphidabbler/codesnip
repository. Both the executable program and source code can be downloaded from the repository's Releases tab.
As noted above, you have a choice of whether to download the Standard or Portable edition of CodeSnip. You should choose the appropriate download link that appears on the release page. You will then be redirected to SourceForge where the download should start automatically.
The source code can be downloaded directly from the release page: see the files under Assets. If no files are visible, click the Assets label to reveal them. You can download the source in either .zip
or .tar.gz
format.
Documentation
The following documentation is available. All of it opens on .
- Read Me (Markdown file) – overview of the program with links to documents detailing how to install the program.
- License (HTML file) – the program's end user license agreement.
- Change Log (markdown file) – lists significant changes made in program release.
- Build File (HTML file) – provides detailed information on how to build the program from source.
The program also comes with a comprehensive help file accessible from the GUI.
Improving CodeSnip
If you find any bugs or want to suggest a new feature please use the project's issue tracker. You can browse existing issues to see if a similar one has already raised. If so please add any further information as comments. If there is no similar issue please raise new one.
Do not report a bug until you have verified that the bug is present on the latest version of CodeSnip.
Because CodeSnip is open source you can download the source code and make modifications yourself. If you would like to contribute to the project then you should fork the Git repository on , create a new feature branch off the develop
branch and make your changes. To submit your changes please submit a pull request on .
You will need a account if you want to create or edit an issue or submit a pull request.