If Notepad is showing high CPU and Memory usage in Windows 11, follow these instructions ie. change encoding, terminate all background processes, etc.
Tech pro ThioJoe shows how to safely run Notepad and Microsoft Store apps inside a Windows Sandbox environment.