Copy GHIDRApy_FunctionStringAssociate.py in ~/ghidra_scripts/ in Linux, or C:/Users/<username>/ghidra_scripts/ in Windows
When the program required for analysis is loaded, open Script Manager, filter scripts by GHIDRApy_FunctionStringAssociate and press Run.
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.