<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">


<META content="MSHTML 6.00.2800.1505" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=445235507-12082005><FONT face=Arial 
size=2>Hi,</FONT></SPAN></DIV>
<DIV><SPAN class=445235507-12082005><FONT face=Arial 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=445235507-12082005><FONT face=Arial size=2>I would like to use 
syntax_tools to prettyprint source code, but with a slightly modified layout - 
for example, I'd like to have a newline after function clause 
arrows.</FONT></SPAN></DIV>
<DIV><SPAN class=445235507-12082005><FONT face=Arial 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=445235507-12082005><FONT face=Arial size=2>At first I thought 
this would be done with prettyprinter hooks, but they are only called for 
annotations.</FONT></SPAN></DIV>
<DIV><SPAN class=445235507-12082005><FONT face=Arial 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=445235507-12082005><FONT face=Arial size=2>My question is: is 
there a way to customize the behaviour like this in a friendly way, or do I have 
to take the axe and hack away?</FONT></SPAN></DIV>
<DIV><SPAN class=445235507-12082005><FONT face=Arial 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=445235507-12082005><FONT face=Arial size=2>On a related issue: 
erl_syntax_lib:strip_comments/1 doesn't strip top-level 
comments...</FONT></SPAN></DIV>
<DIV><SPAN class=445235507-12082005><FONT face=Arial 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=445235507-12082005><FONT face=Arial size=2>best 
regards,</FONT></SPAN></DIV>
<DIV><SPAN class=445235507-12082005><FONT face=Arial 
size=2>Vlad</FONT></SPAN></DIV>
<DIV><SPAN class=445235507-12082005><FONT face=Arial 
size=2></FONT></SPAN> </DIV></BODY></HTML>