]> Pileus Git - pages/commitdiff
Update pages and do some spellchecking
authorAndy Spencer <andy753421@gmail.com>
Mon, 7 Jan 2013 09:26:41 +0000 (09:26 +0000)
committerAndy Spencer <andy753421@gmail.com>
Mon, 7 Jan 2013 09:43:57 +0000 (09:43 +0000)
tools/ct.md
tools/lackey.md
tools/mkinit.md
tools/vpaste.md

index 9e04e2f41de505ca45d49bf3730ab91d837ce85f..fa36a4be0063332df91e5a8aaa55334d5d77c028 100644 (file)
@@ -1,3 +1,6 @@
-ct is a web template system written in C. It allows embedding C code within HTML (or anything else for that matter). The pages are then translated to C code and complied into an executable which can be by a web server though CGI. 
+ct is a web template system written in C. It allows embedding C code within
+HTML (or anything else for that matter). The pages are then translated to C
+code and complied into an executable which can be used by a web server though
+CGI. 
 
 
-It is used on for the pileus.org and AWeather homepages.
+It is used for the pileus.org and AWeather homepages.
index 21ff073519288badcfa2cc7f916c0411746504ad..e9ad9d2d7b56b90bfb45dff013f60f286cd03199 100644 (file)
@@ -1 +1,8 @@
-Lackey is a ncurses calendar client for viewing (and eventually editing) iCalendar files.
+Lackey is a ncurses calendar client for viewing (and eventually editing)
+iCalendar files.
+
+Source Code
+-----------
+Source code is available in git and [gitweb](/git/?p=lackey)
+
+    git clone git://pileus.org/lackey
index f84492b167c210cf09ee6dfd14c25a8d124cc7ab..d5a4b54e6b998e3482cbcea42d3994ca8bf8b4cd 100644 (file)
@@ -1,2 +1,8 @@
 mkinit is an alternate init system that uses the Plan 9 mk program to perform
 dependency resolution and parallel startup.
 mkinit is an alternate init system that uses the Plan 9 mk program to perform
 dependency resolution and parallel startup.
+
+Source Code
+-----------
+Source code is available in git and [gitweb](/git/?p=mkinit)
+
+    git clone git://pileus.org/mkinit
index 5626f90dfdfbeca1c533cd93ba1d1660d52951a3..95ff6be5a17b0b05f11c0362a6cc3773682b87a5 100644 (file)
@@ -1,3 +1,45 @@
 vpaste is a pastebin that uses Vim for syntax highlighting.
 
 vpaste is a pastebin that uses Vim for syntax highlighting.
 
-<http://vpaste.net/>
+The pastebin
+------------
+* <http://vpaste.net/>
+
+Source Code
+-----------
+Source code is available in git and [gitweb](/git/?p=vpaste)
+
+    git clone git://pileus.org/vpaste
+
+Embedding examples
+------------------
+vpaste allows pastes to be embedded in external websites:
+
+<script type="text/javascript" src="http://vpaste.net/embed.js?ft=sh">
+       #!/bin/bash
+
+       echo Hello, World > test.txt
+</script>
+
+This can be done by including code in the script tag itself, as in the above
+example, or by linking to an existing paste:
+
+<script type="text/javascript" src="http://vpaste.net/embed.js?vpaste"></script>
+
+A third way to use the embedding script is to include it once, possibly in the
+in the header, and then call the `format_code('pre','vpaste')` function later
+on to perform syntax highlighting on all the `<pre class="vpaste">` tags.
+
+In this case, slightly more care must be taken to properly escape HTML
+characters scuh as `<` and `>`.
+
+<pre class="vpaste" title="ft=c">
+       #include &lt;stdio.h&gt;
+
+       int main(int argc, char **argv)
+       {
+               printf("hello, world");
+               return 0;
+       }
+</pre>
+
+<script type="text/javascript">format_code('pre', 'vpaste');</script>