Using Notepad

Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

Notepad++ is a text editor for Windows built with programmers in mind, just like Emacs is for

Linux. It does source code/syntax highlighting, as well as automatic indentation of source code.
Properly configured, Notepad++ is a useful tool for all text file editing. One cool and fairly new
feature is a plugin that allows Notepad++ to edit a remote file through an FTP connection. This
plugin can be configured to connect to the Linux Lab and edit files on your Linux Lab directory.

Using Notepad++ with the Linux Lab

First of all, you need to have Notepad++ installed. If you need to download it, go to:
http://notepad-plus-plus.org/ and click “Download” on the left side of the screen, and then
download the installer for Windows (usually the top link on the page).

When you install Notepad++, the default options are just fine, but you can select “Make default
HTML editor” if desired. You may also want it to place a shortcut on the desktop, but besides
these two settings, just click “Next”.

Once Notepad++ is installed (and running if you did not uncheck the box before clicking
“Finish”), go to “Plugins” in the menu bar, then click “NppFTP” in the menu, and in the pop-out
to the right click “Show NppFTP Window”. A sidebar will show up on the right side of the
Notepad++ window.

In the NppFTP window, click on the gear icon and select “Profile Settings”. Another window
will open up.

In the bottom left corner of this window, click “Add New”, and give your profile a name, for
example “LinuxLab”. After clicking “OK”, you will be able to add the configuration data in the
right half of the window.

For Hostname, enter the IP address of a Linux Lab computer, which will be “157.201.194.201”.
The last three digits (the “201”) can be any number from 201 to 235.

Change the Connection type to “SFTP”.

Change the Port to “215”.


Then enter your username and password, and click close.

Notepad++ and NppFTP are now configured to connect to the Linux Lab.

To connect (or disconnect), click the little blue icon in the upper left corner of the NppFTP
window, and select the profile name (like “Linux Lab”). Once it connects, you will see the entire
contents of your home directory from the Linux Lab.

You can look through your entire home directory and double-click on any files that you want to
view or edit. When you save the file you are working on, the changes are automatically uploaded
to the Linux Lab.
Benefits of using Notepad++:

1. You can use all of the normal Windows shortcuts for cut, copy, paste, and save.
2. You can use your mouse when editing files without being in the Linux Lab.
3. You use one PuTTY window and one Notepad++ window, and you can open as many
files as you want in Notepad++.
4. When your network connection fails, your changes are not lost. You just reconnect and
keep going. The file is saved temporarily to your computer, so you can actually close
Notepad++ and even restart your computer. When you open Notepad++, any files that
were previously open are opened back up, and once you are again connected to the Linux
Lab, Notepad++ will again save all changes to the Linux Lab.

Other Settings:

Tabs: (for style checker compliance)

Go to the “Settings” menu, and click on “Preferences…”. In the window that opens, select the
tab that says “Language Menu/Tab Settings”.

First you should check the box next to “Replace by space”. Then
click on the underlined “4” after “Tab Size:”, and put a 3 in the
box that opens up and hit the “Enter” key.

After checking to see that it matches the image on the left, click
on “Close”

Other notes:

Notepad++ handles the colon (“:”) differently than Emacs when


editing source code. When a colon is typed into the editing
window as part of code, Notepad++ changes the indentation to
none.

These instructions are sufficient to set up Notepad++ for accessing the Linux Lab and for writing
code. There are many other useful features that are accessible in the menus.

Notepad++ has many other plugins that provide extra levels of functionality. You can use the
Plugin Manager (available through the “Plugins” menu) to look at many of these plugins and
find out what they do, as well as download and install them.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy