comment-auto-fill-only-comments

comment-auto-fill-only-comments is a variable defined in `newcomment.el'.
Its value is
nil


Documentation:
Non-nil means to only auto-fill inside comments.
This has no effect in modes that do not define a comment syntax.

You can customize this variable.