This repository is a template to create your own code/text editor that will suite your needs.
Here is a demonstration of this repository. The same text comes out in macOS TextEdit too.
- Clone this repository by clicking here. Extract the contents of the file into one folder. Launch 'Text Editor.py' in IDLE for Python 3.6 or later. I used Python 3.8.3.
- Click on Run > Run Module
- You should see a window that says 'Python Text Editor'. Click on 'Create a new file'.
- You will be presented with a text box and a save button. Type something in the text box and click on 'Save As'
- In the shell, you will be presented with a list of file extensions and then and an instruction to save your file. Enter the file's name and the extension and press enter.
- Now, navigate to the folder where you saved the contents of this repository. You will find the file you saved here.
- Now open the file with your default text editor. The text will come out the same!
Click here to view the documentation of the code beside the hashtag (#) or if you have understood it, use it as a template for your own repository
Star this repository or report any issues with the code. Also check out my other repositories.