I'm testing this new Plug-In

I've been looking for exactly this type of plug-in for some time. Given that I've been producing a series of tutorials in which I'm Building a Blog with Grails, I found that the way I've been posting the code isn't really what I would find exceptionally "user-friendly."

So I went searching and found the SyntaxHihglighter plug-in for MovableType. What follows are a couple experiments to see if they work or not.

First, some Groovy:
users.each {

    exportFile.setDomain( it.exportPath )
    exportFile.write()

}

Then, some Java:
class SomeClass {
     public SomeClass() {
         System.out.println("Hello World");
     }
}

Now some css:
body { font-family: Arial; }

Now some HTML
<html>
    <title>My html page</title>

Last, but not least by any means, Python
from django.db import models
    class Poll(models.Model):
    question = models.CharField(max_length=200)
    pub_date = models.DateTimeField('date published')

Definitely what I've been looking for.
In the next tutorial I'll be putting this plug-in to work.
OpenID accepted here Learn more about OpenID

About this Entry

This page contains a single entry by Jim published on April 27, 2009 10:16 AM.

Building a blog with Grails - tutorial #7 was the previous entry in this blog.

Create your own Pandemic is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.