Is there a way for students to auto-indent their code when in text mode? That is, fix the indentation on existing code? I thought I’d seen a way a while ago but now I can’t find it, and I’ve tried searching the site without luck.
If not, are there any favorite tools out there that people would recommend that do a good job? (Yes, I should google first, sorry!)