If you are learning python and want to use notepad++ as a free as well as simple and easy to use editor, follow these simple steps:
Install python (2.7.x)
If you have python 3.5+ installed, you can simply clone the repository and run main.py, it will work right out of the box and doesn't contain any dependedencies. In the future there will be an option to download an exe version of it, for useage on computers that don't have python installed. NOTEPAD project is a desktop application which is developed in Python platform. This Python project with tutorial and guide for developing a code. NOTEPAD is a open source you can Download zip and edit as per you need. If you want more latest Python projects here. This Python project with tutorial and guide for developing a code. Password Protected Notepad App Using The Python - Tkinter is a open source you can Download zip and edit as per you need. If you want more latest Python projects here. This is simple and basic level small project for learning purpose. Due to repeated requests, on how to install the PythonScript plugin on newer versions of notepad, here's a complete guide how to install pythonscript on notepad 7.6.3, 7.6.4 and above: for notepad 7.6.4, 64 bit (installed version): download.
First thing: Download the python 2.7.x (current is 2.7.13) windows installer from http://www.python.org/download/ using the default settings. It should install python in the folder: C:Python27. You can use a different version of python, just substitute out the version number wherever you see 27.
Install Notepad++
Download and install the Notepad++ installer from http://notepad-plus-plus.org/download
Run the installer using the default settings for everything.
Open Notepad++
Configure Notepad++ to run a python script
- Open notepad ++
- Click run > run or press F5
- In the 'program to run' dialog box press the three dots (…) and navigate to C:Python27Libidlelibidle.py (or change C: to your python installation drive)
- Than add '$(FULL_CURRENT_PATH)' after the py so that the line will look like this:
Python 2
C:Python27Libidlelibidle.py '$(FULL_CURRENT_PATH)'
Python 3
C:Program Files (x86)Python36-32Libidlelibidle.py '$(FULL_CURRENT_PATH)'
- Click ‘save and give the shortcut a name like ‘python IDLE'
- You can also select a shortcut, for example': Alt+shift+p
- Click OK
- Click run
- A new notepad window will open. (you can minimize the black command line window)
- hit F5 and the python shell will now open
- In the notepad window, write your code Save as ‘example.py'
- hit F5
- Now, every time you test your modified code, you will be prompted to save the file. When hit F5 the code will run on the python command line shell, it is a very convenient way to code and simultaneously see your code run.
Work on a simple (but interesting) Python Project – Create a Text Editor (Notepad) in Python.
This project will help you understand functional programming in python as we have implemented almost everything using separate functions. Features of python text editor:
1. Change font family
2. Bold
3. Save the document
Project Prerequisites
The prerequisites of python text editor project are as follows :
Notepad++ Plugin Manager
1. Basic concepts of Python
2. Tkinter
To install the libraries, you can use pip installer from the cmd/Terminal:
Download Python Text Editor Code
Please download source code of python text editor – Text Editor Source Code
Creating main.py
Code:
Functions Used:
- Savedoc: It will ask for the location where the user wants to save the current document and then the file name. And finally, it will save the document.
- bolddoc: It will highlight the entire text of the document by changing its style to bold.
- Algerian: It will change the font style of the entire text to Algerian.
- Arial: It will change the font style of the entire text to Arial.
- Courier: It will change the font style of the entire text to Courier
- Cambria: It will change the font style of the entire text to Cambria.
Variables Used:
- root: the main GUI window.
- savebtn: it saves the document by calling savedoc function.
- fontbtn: It is a menu that displays all available fonts. If you want to add more fonts you may add as many as you want, uncommenting the below lines will list all available fonts.
Best vst synths of 2017. # To know or add more font options
# fonts=list(font.families())
# fonts.sort()
- boldbtn: It calls bolddoc function which highlights the text.
Text Editor Output
Summary
Notepad Python Download Version
We have successfully developed python text editor (notepad) project. We have many such simple and interesting projects published on our ProjectGurukul, check them, and keep learning.