CodeSnip Code Snippets Repository

   
Release: 3.6.3
Date: 22 July 2010
O/S: Windows 95, Windows 98, Windows Me, Windows NT 3.1, Windows NT 4, Windows 2000, Windows XP, Windows 2003 Server, Windows Vista, Windows 2008 Server, Windows 7, Windows 2008 Server R2

Screen Shots

Screenshot 1

This first screenshot shows CodeSnip displaying the MakeLCID snippet in the Information tab. The Overview pane is showing snippets grouped bt category. The snippets in blue are user defined.

CodeSnip Screenshot 1

Screenshot 2

For screenshot 2 we have selected the DateYear snippet and switched to the Compiler Check tab. The Overview pane is now showing snippets grouped alphabetically.

CodeSnip Screenshot 2

The Per Database column of the table in the Detail pane shows information from the database about which compilers the snippet is compatible with. We can see that the database has no information about Delphi 2007 and 2009 because the LED next to those entries are grey.

Update
Since these screenshots were taken support has been added for Delphi 2010.

As yet we haven't done a test compile so the LEDs in the table's Per Test column are all grey. Clicking the Test Compile Snippet link (or pressing F9) attempts to compile the routine using the compilers installed on the local computer [see screenshot 3]. We know that Delphi 2, 3, 4, 6, 7, 2006 and FreePascal are available because they are the compilers in the first column of the table that are shown in black – unavailable compilers have their names greyed out.

Screenshot 3

For screenshot 3 we remain on the Compiler Check tab but have selected the ShortToLongFilePath routine then clicked the Test Compile Routine link. Snippets are now grouped by kind (routines, type definitions, constants or freeform code).

CodeSnip Screenshot 3

CodeSnip has created a test unit containing ShortToLongFilePath and then attempted to compile the unit with the available compilers.

LEDs in the table's Per Test column have been lit up to indicate the result of the completed test, which confirms the information from the database. The green LEDs show that the routine compiles without warnings on Delphi 3, 4, 2006 and FreePascal while the yellow LEDs means it compiles with warnings on Delphi 6 and 7 and the red LED shows that it fails to compile on Delphi 2. The links that appear on the right of the yellow and red LEDs can be clicked to get details of the warnings or errors. The grey LEDs indicate that we weren't able to run tests on Delphi 5, 2005, 2007 and 2009.

Screenshot 4

This screenshot shows the dialog box that is used to add and edit user defined routines. There are four tabs of the dialog in total, but only the entries on the first tab are required. A user defined routine named DisableLayersSupport is being edited.

CodeSnip Screenshot 4

Screenshot 5

The last screenshot shows the snippet that was being edited above displayed in the main window. Because this is a user defined snippet its name is displayed in blue and there is a link to the right of the name that can be clicked to edit the snippet.

Note also that the main display has been right-clicked to display the context menu.

CodeSnip Screenshot 5

All the above screenshots are of CodeSnip 3.0 running on Windows Vista Home Premium.