detecting Unity IDE

How do I detect whether my game is running inside the Unity IDE, as a standalone app, inside of the web player, etc?

Thanks,

Brian

Application.platform

–Eric

Or just Application.isEditor

General Application.platform note: Remember that a new platform is added with 2.5: Windows editor.