I've got a site that accepts input from newbie coders, and would like to re-indent code so that it is "properly" formatted. I'd be happy with re-indenting the code as it's displayed, so it could be a ruby solution, but might also be interested in a JS solution if it could show the user the results before saving.
Asked
Active
Viewed 157 times
1 Answers
0
No. CodeRay is only for syntax highlighting. It doesn't include a proper parser.
![](../../users/profiles/471701.webp)
murphy
- 16
-
Any suggestions for a Ruby or JS friendly solution instead? – Nilloc Aug 22 '11 at 05:00