Can Notepad++ compile and execute Python code? Well technically yes, we can make it do that. Let's see how, before starting let's know what Notepad++ is, you can skip this part if you are already aware of this tool.
What is Notepad++
Notepad++ is an open source text editor which is able to do a lot more than just editing texts, Notepad++ can,
- Can do Syntax highlighting for various programming languages and file types, Python too :)
- It can be used to edit multiple text files at a time.
- it will autosave the files for you, even the once whom you did not save as drafts.
- It will guide you to indent your code, with Python its really very important.
- It have as very powerful Find and Replace text options with support for regular expressions.
- Has support for Macros
- Provides various line operations such as sorting based on alpahabets, case conversion uppercase, lowercase, camel case, sentence case e.t.c
- And yes, there are loads of plugins that you can make use of.
So Notepad++ is mostly a "developer friendly text editor", useful for coders!. You can create shortcuts that can help you execute Pyton.exe that will inturn compile and execute your code.
How to download and install Notepad++
Note that Notepad++ is only supported on Windows Operation system if you are using Unix, Linux or macOS you do not have Notepad++ support. In order to download Notepad++ go to their official download page: https://notepad-plus-plus.org/downloads/ and download a 64bit setup (I hope by now everyone is using 64bit operating systems 😊), just follow the simple instructions and get it installed.
How to Syntax highlight Python Code in Notepad++
You can save files as .py and you would see that they getting highlighted, or go to Menu: Languages -> P -> Python, see the demo gif example below,
How to run Python code in Notepad++
- Open a .py code file that you want to run
- Now press F5 to open Run.
- Type in the python.exe file path: example C:\Users\C2c\AppData\Local\Programs\Python\Python38-32\python.exe
- Append "$(FULL_CURRENT_PATH)" at the end with quotes, example C:\Users\C2c\AppData\Local\Programs\Python\Python38-32\python.exe "$(FULL_CURRENT_PATH)"
- Now Press Run, you code will get executed.
- Notepad++ Editor alternatives for macOS
- How to add or remove bookmark on a line in Notepad++
- Notepad++ do not show CRLF characters
- Reduce the size of Tabs on Notepad++
- Delete blank lines in a file using Notepad++
- Fix: Notepad++ bottom status bar not visible
- Notepad++ Hex Editor
- How to show End of Line Characters in File using Notepad++
- [Tutorial] Write And Run Python Code In Notepad++ Editor
- How to install XML Tools Plugin Notepad++
- Customizing Notepad++ New Document Line Encoding: CR/LF/CR LF
- How to remove blank lines from a file using Notepad++
- Column Mode Editing in Notepad++
- Convert text to random case using Notepad++
- How to recover unsaved notepad file Windows 10
- How to delete all text after a character or string in Notepad++
- Setting up Cloud feature with Notepad++
- Install Notepad++ silently using Windows Powershell
- Using Document Map in Notepad++
- Enabling Notepad++ Dark Theme
- [Fix] Notepad++ tab not visible (hidden)
- Where are Notepad++ macros stored?
- Multiple line editing in Notepad++
- Alternatives for Notepad++ on Mac in 2021
- [Nopepad++] How to add text at end of each line
- Command to display epoch time Terminal - Linux
- [Fix] Microsoft Windows OneDrive 0x8007018b Error Code - Windows
- Mac OS X Stuck During Booting Gray Screen Logo and Spinner - Mac-OS-X
- Convert Java Map Collection Object to JSON String using Jackson - Java
- Error: Safari quit unexpectedly. Problem Report for Safari - MacOS
- Install Native Golang on M1/M2 ARM based Mac - MacOS
- Types of brackets used in Programming Languages - Codes - 2022
- Enable Spellcheck in eclipse workspace - Eclipse