[erlang-questions] prettypr
Roberto Ostinelli
roberto@REDACTED
Fri May 11 22:01:17 CEST 2012
Dear All,
is there a way to use prettypr on a list()?
I want to pretty format some source code, all I found is a Trapexit post
showing this:
F="tst.erl",
erl_prettypr:format(erl_recomment:recomment_forms(element(2,epp_dodger:parse_file(F)),erl_comment_scan:file(F))).
Unfortunately this is based on parsing a file, and epp_dodger needs an
IoDevice to parse code.
Is there a way to do something similar but inputting the code as list()
instead of parsing a file?
r.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20120511/3fef4d87/attachment.htm>
More information about the erlang-questions
mailing list