Ascii art in javadoc Permanently deleted user 创建于 2010年07月06日 09:52 When I make ascii art in javadoc, and then do "reformat code", it ruins the ascii art. Is ascii art in javadoc not a good practice?
It's not a good idea to perform ascii painting at html at all because html-compatible agent is not required to preserve custom indentations and line feeds.
However, there is a way to rescue - <pre> tag.
I.e. you can surround your drawing with <pre></pre> and IDEA formatter will preserve it.
Regards, Denis
Oh, yes, that's it! Thanks!