Do you want to start learning a programming language? Then you don't need special software for that; Notepad allows you to write in any programming language you want. It doesn't offer many options, but it's great for quick batch files or testing other small programs. You can put together a simple program in minutes, but for more complex programs you might want to consider using a different editor.
Part 1 of 4: The basics
Step 1. Write program code for each programming language
Since Notepad is a simple word processor, you can use it to write code for any programming language, from C to HTML. You can open Notepad from the Accessories folder in the Start menu, or by searching for "Notepad".
In the paragraphs below you will find some simple examples from a few different programming languages
Step 2. Save the file in the correct format
If you want to use the code in the compiler or interpreter of the programming language you are programming in, you will need to save the file in the format of that programming language. Click File → Save As. In the "Save as type" menu, select "All files (*.*)". Enter the extension of the programming language you are coding in.
Step #3. Consider a more robust editor
While you can absolutely write entire programs in Notepad, it's certainly not the easiest way. Notepad has no syntax checking or indentation options, making it difficult to use for larger chunks of code. Consider a program like Notepad++, specially designed for programming languages and for free.
Part 2 of 4: A batch file
Step 1. Learn the basic batch commands
Notepad is most commonly used for batch file creation. Batch files are programs for automating functions through the command prompt. You can use batch files to make changes to multiple files at once, create backup systems, etc.
Below are a few examples of batch files
Step 2. Write a simple backup program
This is a simple program that allows you to back up files from one folder to another, including only those files that have changed since the last backup.
Step 3. Write a batch file to test your network
If you find yourself frequently checking networks and internet connections, this file will quickly show you the IPConfig and Ping data.
Step 4. Save the file as BAT file
You will need to save a batch file that you have created in Notepad as a.bat. This will change the file into a batch file that you can launch by double clicking or running from the command prompt.
Click File → Save As. In the "Save as type" menu, select "All files (*.*)". Enter the ".bat" extension at the end of the file name. When you save it, the file will be changed to a batch file, making it executable
Step 5. Create your own batch files
You can do a lot with batch files. You can slow down processes, create a program to decompress files, add passwords and much more.
To learn more about creating batch files, check out the following guide
Part 3 of 4: A program in Python
Step 1. Learn the basics of Python scripting
Python is a popular web scripting programming language, and one of the easier ones to learn. Python programs do not need to be compiled; you just need an interpreter installed on your system. Most Python programs are run from the command prompt.
Below are some simple examples in Python
Step 2. Create a "Hello, World" program
This is one of the easiest programs to create and will teach you the basics of building programs in Python. It simply prints the phrase "Hello, World!" on screen.
Step 3. Print the Fibonacci sequence on the screen
This simple program will calculate the numbers of Fibonacci up to 100. You can easily replace the value 100 in the second line with any number you want to change the number of results as well. Just make sure you pay attention to the indentation, because this is what Python indicates functions.
Step 4. Run your programs
It is not necessary to compile Python programs to run them. If you have a Python interpreter installed on your system, you can simply run the saved Python file by executing it. Click File→Save As. In the "Save as type" menu, select "All files (*.*)". Enter the extension ".py" and save the file. This will allow the Python interpreter to open the file.
Step 5. Create more Python programs
Even though it is a fairly simple programming language, Python is very powerful and you can do a lot of useful things with it. You can create lists, loops and charts. You can even make games using Python.
Check out the following guide to learn more about Python
Part 4 of 4: A program in C
Step 1. Learn the basics of C coding
C is one of the older programming languages out there and forms the basis for many of the more popular programming languages in use today, such as C++ and Objective-C.
Below are some simple examples of programs in C
Step 2. Create a "Hello, World" program
This is one of the easiest programs to make and will teach you the basics of building programs in C. It simply displays the phrase "Hello, World!" on screen. Just make sure you pay attention to the indentation, because this indicates C functions.
Step 3. Create a user input storage program
Much of what you'll be doing in C is processing user input. This simple program asks for a number and stores it as a variable, the first step to creating larger programs.
Step 4. Compile your programs
C requires a compiler to convert code into a working program. Click File→Save As. In the "Save as type" menu, select "All files (*.*)". Enter the ".c" extension and save the file. This ensures that the program can be opened in the compiler.
Step 5. Create more programs
This is the very tip of the iceberg when it comes to C, which is a very powerful programming language. You can do a lot with C programs: you can compare strings, delay the execution of a program, create an alarm and much more.