On This Page
Introduction
This document describes how to install and configure TextPad for use on a home computer. TextPad is already installed on CTC and lab machines under the CIS and CS directory. You can access this directory from the Start menu.
You can download a copy of TextPad for evaluation at home. There is no charge for the download, but you must pay for the software if you decide to keep it. A single user license costs only $27 US dollars. Your instructor is a licensed user.
Note that TextPad only runs on computers using Windows. If you want a good text editor that runs on other operating systems, and that is free, try jEdit.
If you need more help, you can consult TextPad's Support information. Or better yet, ask a classmate if they were able to get it set up.
^ top
Installation Instructions
See TextPad's Installation Instructions.
^ top
Configuring TextPad
TextPad has a number of configuration options.
Tab Settings
- Click on the Configure menu and then Preferences.
The Preferences dialog appears with a tree on the left side.
- Expand the Documents Classes by clicking on the '+' sign.
- Expand the Java tree
- Click on Tabulation
- On the right side there should be two checkboxes labeled "Convert new tabs to spaces" and "Convert existing tabs to spaces when saving"; check both of the checkboxes.
- Press either the Apply or OK buttons.
Configuring CheckStyle
- Download and install CheckStyle.
- In addition, download the grade_checks.xml file and place it in the directory to which you installed CheckStyle.
- Click on the Configure menu and then Preferences.
The Preferences dialog appears with a tree on the left side.
- Click on the Tools node of the tree.
You will see a Tools dialog with an Add drop-down menu.
- Click on the Add button and then Program....
The Select a file dialog appears.
- Change the "Files of type:" setting to All Programs (*.*).
- Browse to where you installed CheckStyle, select the
checkstyle-all-3.1.jar file and press the Open button.
- Press either the Apply button.
Checkstyle should now appear as a choice in the Tools menu.
- Expand the Tools menu and click on the Checkstyle tool.
You should see a dialog like the following appear:

- Change the Command line to:
java
- Change the Parameters line as follows:
-jar "C:\path\to\checkstyle-all-3.1.jar" com.puppycrawl.tools.checkstyle.Main -c "C:\path\to\grade_checks.xml" $File
Substitute the path where you installed CheckStyle and grade_checks.xml for the \path\to\ shown above.
Note that Windows allows spaces in directory names, which can cause problems for CheckStyle. The solution is to put double quotes around the paths as shown above.
- Check the checkboxes as shown.
- Set the Regular expression to match output to: ^\(\(\(.[^:]\)\|\([A-Za-z]:\)\)[^:]+\):\([0-9]+\):
- Set the Registers as shown.
- Press either the Apply or OK buttons.
^ top
Using Checkstyle
To run CheckStyle, select the Tools menu followed by CheckStyle. This should list checkstyle errors on a Command Results page.
^ top
Home
| WebCT
| Announcements
| Schedule
| Expectations
| Syllabus
Help
| FAQ's
| HowTo's
| Links
Last Updated: October 09 2003 @10:19:16
|