Open the Microsoft Store and search for "Windows Notepad." Click Get or Install to download it directly from Microsoft.
Go to System > Optional features , click "View features," type "notepad," and select it for installation. 2. Notepad++: The Power User's Choice
If you find the standard version too basic, is the industry standard for lightweight code editing. It is free, open-source, and supports syntax highlighting for dozens of programming languages. How to Download Safely: Notepad or Notepad++: My Honest Experience
The Ultimate Guide to Downloading Notepad: Built-in vs. Notepad++