Proposals for further development of Snippet Compiler inside Scaladoc:
Add a way to hide pieces of code inside snippet with possibility to reveal it.
Add flags to indicate if snippet should or shouldn't compile. If the snippet shouldn't compile we should attach compilation errors to documentation.
Add code markers (just like markers showing potentially wrong code in compilation errors) and assert that marked piece of code doesn't compile. There's also interesting idea to implement nice UI to code snippets which highlight marked code and show error on hover.
Proposals for further development of Snippet Compiler inside Scaladoc: