# Electrics - automatic typing by Alpha

The term "electric" is used in the sense of "automatic, power assisted behavior", which is intended to save time, keystrokes, and brainpower. All the "electric" features are features, which makes Alpha do automatic typing for you. CSS modes electric preferences are set using Preferences in the CSS menu.

Electric braces
Enabling Electric braces tells Alpha to treat the left or right brace '{', '}' keys as special keypresses which enter the '{' or '}' character, followed by a carriage return and then indent the following line correctly. Note! For the electric braces to work you must select your keyboard in the dialog Config->Preferences->System Preferences->International.
Electric semicolon
Enabling Electric semicolon tells Alpha to treat the semicolon key ';' as special keypresses which enters the ';' character followed by a carriage return and then indents the following line correctly.
Indent on return
Enabling Indent on return tells Alpha to indent the following line automatically whenever you press return.

## Command-double-clicking

### Command-double-clicking on a CSS property

Command-double-clicking on a CSS property opens a dialog box, where you can edit the value of the property.

### Command-double-clicking on a URL attribute

Command-double-clicking on an absolute URL sends the URL to your web browser. This is not limited to CSS mode. It is a general feature of Alpha.

Command-double-clicking on a relative URL attribute opens a new window with the file if the file exists and is a text file. If it does not exist, a dialog box appears as the one shown below. As you see, a new empty window can be opened with the name of the file. This window is automatically saved in the right place, and if necessary new folders are created. Thus, if you are making a new set of pages, you can make links to the ones you have not written yet and then, by cmd-double-clicking, let Alpha make empty files which are saved where you want them.

## Funcs menu

If you press the two curly braces in the right hand corner of the window (the so called 'funcs menu'), this menu will display an item for each selector in your file. You can then easily jump to a selector by selecting it in the menu.

## Reload in browser

The function Reload in browser reloads the frontmost window in your browser. The idea is that if the frontmost window in the browser uses the style sheet you are editing, so you can quickly reload the page to see the effect of your changes to the style sheet. Reloading the page currently works with Netscape, Internet Explorer, Mozilla, Opera, Safari, and iCab.

Previous page Next page