Skip to content

Commit 202395c

Browse files
committed
Rewrite Code Snippets page
1 parent 3b6df94 commit 202395c

File tree

1 file changed

+17
-24
lines changed

1 file changed

+17
-24
lines changed

Diff for: snippets.html

+17-24
Original file line numberDiff line numberDiff line change
@@ -7,57 +7,50 @@
77
<h1 roll="heading">{{page.title | escape}}</h1>
88

99
<p>
10-
The old DelphiDabbler site had two web applications that displayed code snippets from two different sources:
10+
I maintain two repositories of Pascal code snippets:
1111
</p>
1212

13-
<ol class="wide">
13+
<ol>
1414
<li>
15-
The DelphiDabbler Code Snippets &quot;Database&quot; of compilable Delphi Pascal snippets.
15+
The <em>DelphiDabbler Code Snippets Collection</em>, which is an extensive collection of Delphi Pascal snippets.
1616
</li>
1717
<li>
18-
The old SWAG (<b>S</b>ource<b>W</b>are <b>A</b>rchive <b>G</b>roup) collection of source code and programming examples.
18+
The old <em>SWAG</em> (<b>S</b>ource<b>W</b>are <b>A</b>rchive <b>G</b>roup) collection of source code and programming examples.
1919
</li>
2020
</ol>
2121

22-
<p class="alert alert-danger glyph">
23-
Both web apps depended on web services provided by the old web server and were lost when that server closed down. It would be a big job to recover and convert the apps.
24-
</p>
25-
2622
<p>
27-
All is not lost. I have created a couple of Git repositories GitHub to hold the snippet collections. They are:
23+
The repositories are:
2824
</p>
2925

3026
<ul class="list-group">
3127
<li class="list-group-item">
3228
<p class="strong">
33-
<a href="https://github.com/delphidabbler/code-snippets" aria-label="DelphiDabbler Code Snippets database repository on GitHub">delphidabbler/code-snippets</a>
29+
<a href="https://github.com/delphidabbler/code-snippets" aria-label="DelphiDabbler Code Snippets Collection on GitHub">delphidabbler/code-snippets</a>
30+
</p>
31+
<p>
32+
This repository contains all the snippets in the <em>DelphiDabbler Code Snippets Collection</em> along with meta data stored in .ini files.
3433
</p>
3534
<p>
36-
This repository contains all the snippets in the Code Snippets Database along with meta data stored in .ini files. The database is in the <code>csdb</code> directory off the repository root.
35+
The collection can be displayed by my <a href="/software/codesnip">CodeSnip</a> program.
36+
</p>
37+
<p>
38+
Some of the snippets have unit tests or demo programs, all of which are available from the repository.
3739
</p>
3840
</li>
3941
<li class="list-group-item">
4042
<p class="strong">
4143
<a href="https://github.com/delphidabbler/swag" aria-label="SWAG collection repository on GitHub">delphidabbler/swag</a>
4244
</p>
4345
<p>
44-
This repository contains all the &quot;packets&quot; (a SWAG term for a snippet) in the collection along with an XML file containing meta data.
46+
This repository contains the <em>SWAG</em> collection. It contains all the &quot;packets&quot; (a SWAG term for a snippet) along with an XML file containing meta data.
47+
</p>
48+
<p>
49+
The collection can be viewed using my <a href="/software/swagview">SWAGView</a> program. Selected SWAG packets can also be imported into <a href="/software/codesnip">CodeSnip</a>.
4550
</p>
4651
</li>
4752
</ul>
4853

4954
<p>
5055
Both collections are comprehensively documented.
5156
</p>
52-
53-
<p class="alert alert-info glyph">
54-
The Code Snippets Database can be displayed by my <a href="/software/codesnip">CodeSnip</a> program. It can also import SWAG packages. In fact CodeSnip's SWAG import wizard contains a pretty reasonable SWAG viewer!
55-
</p>
56-
57-
<h2>
58-
Tests
59-
</h2>
60-
61-
<p>
62-
There are some unit tests available for a few of the snippets in the Code Snippets Database. The tests for the latest release of the database can be downloaded from the project's <a href="https://github.com/delphidabbler/code-snippets/releases">Releases page</a>.
63-
</p>

0 commit comments

Comments
 (0)