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:
Then, some Java:
Now some css:
Now some HTML
Last, but not least by any means, Python
Definitely what I've been looking for.
In the next tutorial I'll be putting this plug-in to work.
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.
