Code examples' color coding no longer make my eyes hurt

Written by Davy Hellemans -

The website used to use the highlight_string function from PHP. That works in most cases, but the color coding choices are very limited and need to be set using ini settings (or ini_set for that matter).

I came across highlight.js and so far it seems pretty reliable. They support quite a few programming languages and colors with their script. And the best part is that the compressed file you download will only contain those languages you want to highlight, which keeps the script fast.

Thanks to the new highlighting I managed to apply another color scheme (thx to Dave Lens for his phpzen theme). Check out the example below.

// This is a single-line comment
$stringvariable = "examplestring";
$intvariable = 300;

/**
 * The description of my test class
 *
 * @author Davy Hellemans <davy@spoon-library.com>
 */
class Testclass
{
	public function test($param = 'default')
	{
		return true;
	}
}

New website released

Written by Davy Hellemans -

Finally the new website has been released. This is mostly a redesign of the previous one, with a few extra features. It's now possible to post comments on tutorials, blogposts and class methods.

I want to thank @yoniweb (Yoni De Beule) for his design skills. He made sure the logo and website look amazing. More thanks go out to @tijsverkoyen for his HTML5 slice work which kicks some serious ass.

Feedback about the redesign/features is always welcome.

SpoonForm example

Written by Davy Hellemans -

I'm working on an extensive tutorial about SpoonForm, but since I've been getting a lot of questions about forms, here's a brief example to get you started.

SpoonForm example

Spoon requirements

Written by Davy Hellemans -

I've been getting reports from people, unable to get Spoon Library up and running. This is because mbstring is a required extension, but no extension check has been implemented yet. In the next release we'll add a series of checks that gives warnings about the extensions that you should enable to use Spoon.