Hi,
Thank you for your posting!
Firstly, I agree with what @S.Sengupta said, it may be a license issue.
Actually, pasting open source code into your own program is a longtime debate and this practice can be prohibited in some cases. The source where you tried to copy and paste code may be implemented strict copyright protection and that's why your text editor did not allow you to do this.
Here is an article for why should not pasting open source code to your program:
https://resources.whitesourcesoftware.com/blog-whitesource/copy-and-paste-code
Thank you for your understanding and support!
BR,
Joan
--------------------------------------------------------------------------------------------------------------------
If the Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.