Following on from this question: Is it possible to convert an expression to InputForm or StandardForm without losing the comments?
For example,
f[blah_] := Cos[blah] (* this is a comment *)
f[blah2_] := Cos[blah2] (* this is also a comment *)
selecting the cell and pressing Shift+Ctrl+N gives,
f[blah_] := Cos[blah]
f[blah2_] := Cos[blah2]
(Sum(* boo *))[x, x]in standard form? – Rojo Feb 25 '13 at 20:56ToolTip:) – Silvia Feb 26 '13 at 03:18TemplateBox[{"x","boo",ToBoxes[f[x]]},"commentedSum",DisplayFunction:>(RowBox[{TooltipBox[UnderscriptBox["\[Sum]",#1],#2],#3}]&)]//RawBoxes:) btw SilviaForm is a great name! I'll consider using it somewhere ;) – Silvia Feb 26 '13 at 18:57