If you're looking for a free and awesome coding editor for the Windows platform don't look any further! PSPad is a web programmer's dream come true. It offers a ton of features like commercial software, yet is lightweight and fast.
This PSPad guide will cover the setup and configuration as well as some basic usage.
First of all you have to download the latest version of PSPad. Make sure to get the installer version. Once downloaded double-click the installer to launch the setup.
The installation is pretty straight-forward. I recommend enabling shell-integration if the installer asks for it. This will allow you to open any file with PSPad by a simple right-click and then choosing PSPad in the context menu.
Upon launching PSPad the first time you should see something like this:
We're going to make some small tweaks:
It now should look like this:
If you look at some menus and icons you will notice that PSPad looks a bit different than your standard word processor. There are a lot of tools made to ease the programmer's work, such as the code explorer, code highlighting, automatic code insertion, lots of calculators and converters, powerful search & replace, integrated code validation, a hex editor and other useful things.
Let's take a look at some of these more practical features for day to day use.
First we'll have to create a new file:
The code in this tutorial is just for demonstration purposes, it's not necessary to already understand it. PSPad should now look like this:
Let's test the code explorer:
This is very useful for quickly navigating in huge documents rather than scrolling by hand.
Suppose we want to add a text input field to our XHTML page but we're too lazy to type it out. Nothing simpler than that with PSPad's automatic code insertion:
<body> and </body> tags.<textarea>.Quite a neat trick and also helpful for looking up tags if you don't know each and every one by heart.
Maybe you have noticed a red arrow in the top left corner of your file tab. This means that your file hasn't been saved since the last made change. Let's save our file then:
Now that our work is saved it's time to preview it in a browser. Although PSPad has its own preview tool you're better off previewing your page in a real web browser since that's how it's ultimately going to be viewed.
If it worked out right you should get something like:
Preview of your pageThe web page looks like it's displaying correctly. To be 100% sure let's check it for errors with PSPad's included code verifier:
In case you're getting error messages the code verifier will generally mention in which line errors happened and how to fix them. Try to insert some errors yourself by deleting random things and see how the code verifier reacts.
Make sure your file is error-free, save it and close it. We're now going to use PSPad's external file search:
PSPad should now have found the text string textarea in your file. It will list all search results in the bottom of the screen. By double-clicking a search result the corresponding file will be opened and the active line will jump to where the match occurred.
External file search resultsThat's it! I hope you enjoyed this tutorial and got a feel for how powerful a coding editor PSPad is. Best of all it's free!