SubEthaEdit 2.1


The newest version of SubEthaEdit adds a few new features that are worth checking out. If you have ever wanted to work on a file with someone else simultaneously, then this is definitely something that you want to check out. If you are simply looking for a great programming editor for the Mac that really follows the Apple human interface guidelines, this is also what you need. I have been using it for a while now and it only gets more useful. It has very powerful and flexible regular expression support and this new version allows you to add or remove text from multiple lines simultaneously. The new version 2.1 also supports the ability to copy from the editor as XHTML which can then be pasted in a web log for example to show code snippets including the syntax highlighting. This example shows one of the functions I wrote for one of the questions on my networking assignment - yes it is PHP.

static function randomNode() {
    // Chooses a random node from those
    // added with Node::addNode()
    $dnode = mt_rand(1, Node::$nodecount);
    reset(Node::$nodelist);
    while (--$dnode) {
        next(Node::$nodelist); 
    }
    return current(Node::$nodelist);
}
Written by Colin Bate