Miscellaneous Tips

Right-Click Options for Local Web Pages
Raw FTP Commands
LotusScript Syntax Files for Crimson Editor
Miscellaneous Reference Documents
How to Transfer a Tape to CD
Using JavaScript to Search For and Highlight Text on a Web Page

Right-Click Options for Local Web Pages
August 31, 2002

Here are some registry entries I added to my development machine that add right-click options to my local HTML files. It makes it easier to examine the files in an application other than Internet Exploder (for cross-browser development). You can add them by copying the text below into a .REG file, and then double-clicking the file to enter it into the registry (don't forget to change the file paths as necessary):


; Add Notepad option
[HKEY_CLASSES_ROOT\htmlfile\shell\Open with Notepad]
[HKEY_CLASSES_ROOT\htmlfile\shell\Open with Notepad\command]
@="notepad.exe %1"

; Add Netscape option
[HKEY_CLASSES_ROOT\htmlfile\shell\Open with Netscape]
[HKEY_CLASSES_ROOT\htmlfile\shell\Open with Netscape\command]
[HKEY_CLASSES_ROOT\htmlfile\shell\Open with Netscape\ddeexec]
[HKEY_CLASSES_ROOT\htmlfile\shell\Open with Netscape\ddeexec\Application]
[HKEY_CLASSES_ROOT\htmlfile\shell\Open with Netscape\ddeexec\Topic]

; Add Opera option
[HKEY_CLASSES_ROOT\htmlfile\shell\Open with Opera]
[HKEY_CLASSES_ROOT\htmlfile\shell\Open with Opera\command]
[HKEY_CLASSES_ROOT\htmlfile\shell\Open with Opera\ddeexec]
[HKEY_CLASSES_ROOT\htmlfile\shell\Open with Opera\ddeexec\Application]
[HKEY_CLASSES_ROOT\htmlfile\shell\Open with Opera\ddeexec\Topic]

By the way, the "htmlfile" file type is the kind that is used when IE is set up as your default web browser. If you have a different browser set up as your default, find out what the file type is in REGEDIT (it'll be the type that's associated with .HTM files), and adjust the registry entries above accordingly.

Raw FTP Commands
September 3, 2002

Below is a link to a list of "raw" FTP commands. These are commands that are normally hidden or aliased by FTP clients, but you'll need to know them if you do any direct communication to an FTP server -- like the Java FTP class in the JavaTips section of this site. This list used to be located at http://www.dreamhaven.org/ftp-raw.html but has since disappeared, so I put a copy here.

Raw FTP Command List

On a related note, since a lot of people use and are confused by the command-line FTP client that comes with Windows, I also posted a Microsoft Windows FTP Client Command List here for you.

LotusScript Syntax Files for Crimson Editor
September 24, 2002

Here are some "spec" files I wrote for the Crimson Editor program that allow you to use syntax-highlighting on LotusScript script files. If you use a different text editor that also supports custom syntax highlights, you can potentially use these files as a basis for your own custom syntax definitions (copy-and-paste sure beats typing everything in from scratch).


Miscellaneous Reference Documents
January 8, 2003

These are some truly miscellaneous reference documents that may be useful to you.

Common HTML Character Codes
Hex Words
Basic DOS-to-UNIX Command Comparisons
Basic UNIX vi Editor Commands

How to Transfer a Tape to CD
March 31, 2003

Here is a description of a technique I used to transfer songs from a cassette tape to a CD using the Nero Wave Editor. It was a complicated enough process that I thought I'd share the information with you.

How to transfer a tape to CD

Using JavaScript to Search For and Highlight Text on a Web Page
September 6, 2003

This page has some examples of JavaScript functions you can use to search for and highlight text on the current web page.

JavaScript Text Highlighting