Running on a USB flash drive

From EditPlus Wiki
Revision as of 01:25, 2 December 2011 by WikiSysop (Talk | contribs) (Reverted edits by Solo230 (talk) to last revision by ElfQrin)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

As we all already know, EditPlus is an extremely handy and efficient text editor. Wouldn't it be nice if you could install EditPlus on a portable USB flash drive (aka thumbdrive, Flash Drive, USB jump drive) so that you can take it anywhere. Are you a programming student or web design student? Does your school's computers have USB ports? If so, this tutorial is for you.

Prerequisites

In order to install EditPlus on your thumb drive, you will need the following:

  * A computer with Admin privileges (your computer at home, for instance)
  * A USB flash drive (jumpdrive, thumbdrive, portable USB hard drive, whatever...)
  * Access to the internet.

Installation

Step 1) Find a computer where you have administrative privileges, like your home computer (hopefully). Chances are, you won't be able to do this on a properly secured school computer.

Step 2) Visit EditPlus.com and download the installation files.

Step 3) Install EditPlus on your USB flash drive.

Step 4) If you haven't done so already, purchase EditPlus. Support this great software.

Usage

USB flash drives are automatically assigned a drive letter by Windows. Chances are, that the drive letter assigned to your flash drive will vary depending on the classroom or lab the computer is in. If you open EditPlus and it says that it cannot find any of the configuration files, continue loading EditPlus while canceling all the error boxes that appear. Then, in EditPlus, click on Tools -> Ini File Directory. Change this from "E:\EditPlus" to ".". This will place all INI configuration files in the directory EditPlus is launched from.

Now you need to change the file paths in the INI files. You can do it either from inside the application or editing configuration files manually.

If you want to do that from EditPlus, open the Preferences by clicking Tools -> Preferences. The first thing to update is the syntax highlighting and auto completion in Preferences -> Files -> Settings & syntax. Select each file type and delete the file path in front of the filename. In other words, change "E:\EditPlus\cpp.stx" to "cpp.stx" and repeat for HTML, Perl, etc. If you prefer to keep a path, use ".\" (which means "current directory" in front of the file name; example: ".\cpp.stx"). The next thing to update is the template files in Preferences -> Files -> Templates. The last change is to update the Spell checker dictionary in Preferences -> Tools -> Spell checker. Once you are changed all the file types and templates click Apply.

If you prefer to edit configuration files (which is probably quicker), open "template.ini" and "setting.ini" and replace any occurrence of "X:\Program Files\EditPlus 2" (or the actual path where your copy of EditPlus was stored) as ".".

The last file path is the "WorkSpace Path" parameter in "editplus.ini" (where files are saved by default). Change it to ".". However such path contains the last directory you've used to load or save files and it's likely to be changed regularly.

If you get an error message when you open a file simply click Document -> Refresh STX/ACP.

Potential Problems

EditPlus v2.21.381

One thing I've noticed is EditPlus does not respect the 'INI File Directory' setting when opened by the shell extension (eg. [right-click]->EditPlus). The problem occurs when EditPlus is not running, and then opened with a right click, EditPlus looks for all the syntax/ctl/acp files in the folder where editplus.exe is located and not where they have been defined to be from the ini files. This behavior is inconsistent so it is most likely a bug.

I have setup EditPlus to have all relative paths with files sorted into appropriate folders as shown below, which works fine when editplus is opened first and the file to be edited is opened second:

├───acp_files
├───apps
│   ├───cobol
│   ├───esc
│   ├───html_tidy
│   ├───par
│   └───php
├───ctl_files
├───dictionary  // (user-dict)
├───ini_files
├───syntax_files
├───templates
├─.(dll's and all other files)
├─editplus.exe


See also