Mike Slinn

Zample in a article

Published 2005-01-05.
Time to read: 1 minutes.

This page is part of the posts collection, categorized under Zamples.

Erik Dasque, Product Manager for Mono at Ximian (now part of Novell) was the first person to include a Zample in a article. Way to go, Erik! May there be many more bloggers using Zamples to display live code in their blogs.

I have had some trouble doing this – when I used SnipSnap it simply wouldn't accept raw HTML. I wrote a SnipSnap plugin to allow raw HTML, but then my SnipSnap installation b0rked and I gave up on it. WordPress really mangles the HTML for a Zamples button; here is my best effort (can't get the 'Try It!' button to remain vertically centered.)

public class Test {
    public static void Main() {
        System.Console.WriteLine("I love Zamples!");

If you would like to include a live code example in your blog, first create it using the Zamplizer (easiest if you click on one of the selections under the Create Sample left-hand menu on the Zamples Solutions page – that will set up the Zamplizer with a short working program in the language you want, which you can then modify.)

Zamples logo

* indicates a required field.

Please select the following to receive Mike Slinn’s newsletter:

You can unsubscribe at any time by clicking the link in the footer of emails.

Mike Slinn uses Mailchimp as his marketing platform. By clicking below to subscribe, you acknowledge that your information will be transferred to Mailchimp for processing. Learn more about Mailchimp’s privacy practices.