you should really check out DuoCode - looks like just what you need