Copy functionstringassociate.py in IDA Folder/plugins
When the program required for analysis is loaded, press "Edit/Plugins/FunctionStringAssociate"
The script iterates through all the functions collecting all available strings in the function, and then sign their like a comment.
This software is provided "as is", without any guarantee made as to its suitability, or fitness for any particular use. It may contain bugs, so use this software is at your own risk. The author takes no responsibly for any damage that might be caused through its use.