Best way to do it that I've found - copy, replace. By the time you ask on this forum, wait for a response, investigate any said solutions etc, you could have easily converted 2kb of code.
Best way to do it is paste basic stamp code in the Programming Editor, then run a syntax check. Fix the first error, syntax check, and so on.
The obvious differences are the way variables are declared and pins are set. Once you've done that, the rest is fairly identical.
Regards,
Morrolan