Google+
ITS and UVa logos for printed output

Home Directory Service

Editing Web Pages from Multiple Platforms and

End-of-Line Differences

You will only need this information if you will be editing your files from both a microcomputer and a UNIX system. If you always edit your Web page files on the same type of computer, you do not need to read any further.

Generally, Web editors (like Dreamweaver) and word processors (such as Microsoft Word) will handle files ending in .htm or .html correctly. Since the end-of-line characters are different in the Windows, Macintosh, and UNIX environments and Web pages are served from UNIX systems at UVa, it is important that your files have the correct end-of-line character if you will be viewing or modifying your files from more than one system. Also, if you edit a script (e.g., Perl script) on your microcomputer, it is possible that the script will not work from the Home Directory Service if the end-of-line character is incorrect. NoteTab Light and Word can all be used to set the end-of-line character appropriately.

NoteTab Light Editor (Windows systems only)

NoteTab Light is a freeware editor that can be used on Windows machines to edit text files, such as HTML files, that make up Web pages. NoteTab Light can be downloaded from ITS's Software Central.

To use NoteTab for editing Web pages:

  1. To create or modify a Web page file, open your connection to the Home Directory and double-click on the public_html folder.
  2. Start the NoteTab Light editor.
  3. Go to the Document menu and select Properties. In the Save Format list of formats the choices include DOS, UNIX, Mac or Original. On Windows systems, DOS is the default, which will generally work on all systems. If you will be modifying the file from a UNIX or Mac system, you can change the setting appropriately. Click on OK to close the dialog box.
  4. From the File menu choose Open or New. If you are modifying an existing file, click on the folder with the up-arrow until you get to C:. Use the scrolling list to select the drive (default is J:) to which your Home Directory files are mapped.
  5. Double-click on the public_html folder. Select the file you want to modify.
  6. Make the changes you want. Notice that at the bottom of the NoteTab screen that there are some HMTL menus to help with your editing.
  7. When you are finished, go to File and Save. NoteTab will ask if you want to replace the file. If you do, select Yes and you are done.

Dreamweaver

If you use Dreamweaver on either a Windows or Macintosh system to edit your home page files and you will also be editing these files on a UNIX system, you should set your end-of-line character preferences by going to the Edit menu. Choose Preferences and then Code Format. From the Line Breaks drop-down menu, choose LF (Unix).

Fixing End-of-Line Differences in UNIX

If you have existing files with Windows-style line endings, and you want to change them to have UNIX-style line endings, refer to information on the UNIX flip command.

Page Updated: 2015-05-27