I assume you have seen the SourceCodeServlet in the simple examples? It doesn't format the source code but it basically shows the jsp as it would look in a text editor (before the jsf tags are processed into HTML.)
Probably not what you are looking for but its a start ... sean