Online nesting script?

Hi,

I have a lot of code that needs tidying up and tabbing in. Are there any scripts/generators that can do this if I just input my code?

Thanks