Truncate display of long comments

Currently this only applies to CODE nodes; it might also make sense for
other nodes as well.

closes #2