Is there a text editor that will "pretty print" for display without changing the underlying text?
There are two competing requirements
1) I want to pretty print so that I can read and understand code written by my peers
2) I don't want to check in the pretty printed code to source control because...
- It might not meet the coding standard where I work
- When reviewing history in source control, formatting changes obscure the 'real' changes.
For discussion of problems checking in formatting changes, see this other stackoverflow question
- Committing when changing source formatting?
At the开发者_如何学编程 same time, I still need to be able to edit the file and save changes. I want to be able to edit the ugly text while I see the pretty text.
Does anyone know an editor with a feature like this?
精彩评论