Franais

Vic

2010-2011, Normand Lamoureux.

System:
Windows 2000/XP/Vista/7
Language:
English, Franais
License:
Creative Commons BY-NC-SA
Version:
1.5.1
Size:
206 kb (.ZIP)
Last update:
July 16th, 2011

Download (657 kb)

Summary:

Overview

Vic is a lightweight text editor, customizable, multi-tabs and super-fast, which consumes very little memory. It can highlight the syntax of any programming language, it is capable of editing very large files and can display unprintable characters in a readable format.

The Find and Replace feature supports multi-lines requests and those based on Pearl Compatible Regular Expression (PCRE). Each query can be done in forward or backward, be limited to the selection, or the current tab, or extend to all tabs.

With Vic, just type a word and press Tab to generate a pair of tags, and one click to get the complete skeleton of an HTML file or turn a selection into a list, a sequence of paragraphs or a perfectly marked and indented HTML table.

Sorting data is a breeze: you select the data to be processed, select the options you want and that's it. You can classify text as well as numbers, according to the ascending or descending order, using the separator that you want and even demand the elimination of duplication.

Vic can recognize and automatically mark up an electronic address, indent your lines of text and generate your bullets or numbering your paragraphs when you take notes, etc. Browse the rest of this file for more details.

License

Vic is a free software released under Creative Commons Attribution-NonCommercial-ShareAlike. Its sale or commercial use is prohibited.

You can run, copy, modify and redistribute Vic, provided that redistributions indicate that I am the author of the original source code and they send the same freedoms.

For more details, see outline explanations under the license. For all details, read integral text of the license under Creative Commons website.

I offer no guarantee whatsoever and I release myself from any liability, direct or indirect which might be related to the use of Vic.

The HiEdit control and the Dlg module used by Vic are subject to their own licenses. To access the original license of HiEdit, open the HiEdit.inc file located in the hie folder. To access the original license of the Dlg module, open the Dlg.ahk file located in the inc folder.

Features

This section is the longest. She toured the following menus and offers an explanation for each item inside: File, Edit, View, Insert, Tools, Markers, HTML, Plugins, Help.

File

New tab (Ctrl+N)

Opens a new tab and puts it in the foreground. The new tab is empty and has a temporary name preceded by an asterisk (*).

Open a file (Ctrl+O)

Calls the Open dialog box from which you can navigate the computer's tree, then select and open a file.

When multiple files are selected, the command has the effect of opening them in separate tabs. If one tries to open a file already open, the command is limited to focus on the proper tab.

Other actions usually possible since the Open dialog box are allowed. For example, create a new folder, rename or delete a file or folder, etc.

The history of the last 6 files open automatically updated. This history appears at the bottom of the File menu.

Open a saved session (Alt+Ctrl+O)

Calls the Open dialog box. If the selected file contains a list of files, each will open in a separate tab. Otherwise, the command will simply open the file in a new tab.

If the list tries to open multiple instances of the same file, the latter will be opened only once.

The history of last opened files are not updated when a session file is open.

Close (Ctrl+F4)

Closes the current tab and put the focus on the following, if any. A confirmation of closure will be required if the contents of the tab has changed since its last recording.

Close all tabs (Ctrl+Shift+F4)

Closes the files one by one. If the contents of a file has changed since its last recording, a warning is issued.

Save (Ctrl+S)

Saves the current file. If the file exists, the new content replaces the old. Otherwise, the dialog box Save as appears.

Save as (Ctrl+F12)

Calls the dialog box Save as, from which it is possible to create a new file with the contents of the current file.

If the file that tries to create already exists, a confirmation will be required before the crush.

Save all tabs (Ctrl+Shift+S)

Saves all open files. The dialog box Save as appears when a file has no name.

Save the current session (Alt+Ctrl+S)

Creates a file containing a list of open files. This file can then be used to open all the same files at once via the command Open a session.

A confirmation message is returned when the recording of the session is successful.

Vic does not have specific extension to recognize a session file.

Print (Ctrl+P)

???

Convert into Mac's line format (CapsLock+M)

Replaces Unix end of lines (LF) and Windows end of lines (CR+LF) by Mac end of lines (CR).

The order covers the entire tab. When several tabs open, a dialog box offering to extend the change at all.

Convert into Unix's line format (CapsLock+X)

Replaces Mac end of lines (CR) and Windows end of lines (CR+LF) by Unix end of lines (LF).

The order covers the entire tab. When several tabs open, a dialog box offering to extend the change at all.

To insert a Unix linebreak, position the cursor where you want and press Ins+Enter.

Convert into Windows' line format (CapsLock+W)

Replaces Mac end of lines (CR) and Unix end of lines (LF) by Windows end of lines (CR+LF).

The order covers the entire tab. When several tabs open, a dialog box offering to extend the change at all.

Reload the current file (Alt+Ctrl+W)

Charges in memory the current file.

Show the list of opend files (Alt+Ctrl+Z)

Displays the list of files opened in the upper left corner of the screen. This may facilitate the identification of the file search when several tabs open.

Quit (Alt+F4)

Closes the Vic's window and all tabs in it.

The closing process is interrupted and a warning message is sent when the contents of the current tab has changed or when there are more than one tab to close.

Edit

Undo (Ctrl+Z)

Resets the contents into the state it was before the last action. This command can be repeated indefinitely, but has no effect when there is nothing to cancel.

Redo (Ctrl+Y)

Resets the contents into the state it was before the latest cancellation. This command can be repeated indefinitely, but has no effect when there is nothing to restore.

Add to clipboard (Ctrl+Ins)

Make a copy of the selection result of what was already in the clipboard. The command has no effect when nothing is selected.

Clear the clipboard (Ctrl+Shift+Ins)

Deletes the contents of the clipboard. The command has no effect if the clipboard is already empty.

Cut (Ctrl+X)

Puts a copy of the selection to the clipboard, then deletes the selection. The command has no effect if nothing is selected.

Copy (Ctrl+C)

Puts a copy of the selection to the clipboard. When nothing is selected, the command puts the current file path in the clipboard.

Paste (Ctrl+V)

Inserts the contents of the clipboard at the location of the cursor. The command has no effect when the clipboard is empty.

Delete (Del)

Deletes the selected text. Through the menu, the command has no effect if nothing is selected. With the keyboard, the command removes the selection or the current character.

Find the other member of the pair (Ctrl+J)

When the cursor is left of a character likely to form a pair, the command will select the corresponding opposite character, if any.

For example, if the cursor is initially to the left of the penultimate bracket expression (((2+3)*(8-4))/5), the command will effectively select the second bracket (((2+3)*(8-4))/5), and vice versa.

If a character is no match, a warning dialog box. This is the case for example with {{{[Foo]}}, where the first bracket has no counterpart with whom to form a pair.

The command has no effect when the cursor is left of a character other than one of the following: (){}[].

Go to (Ctrl+G)

Calls the Go to dialog box, from which you can position the cursor at a specific location in the text. When displayed, the dialog box shows the numbers of current row and column.

As soon as we entered a line number, the total number of columns adjusts accordingly.

Striking Escape dismisses the dialog box. Striking Enter activates the OK button.

When opening a new tab, the cursor is in row 1, column 1. The command has no effect when specifying a line number or column equal to zero (0), or a non-existent line number.

If you specify a column number greater than the number of columns in the target line, the account continues on the next line. Note that two columns are consumed to take a change of standard line, since it consists of a character carriage return (CR) followed by a newline (LF).

Find (Ctrl+F)

Calls the Find dialog box, from which we can do a standard search, a multi-line search or a search based on a regular expression.

Striking Tab moves the cursor to the next control. To insert a tab character in the edit field, press Ctrl+Tab. Striking Enter activates the Next button. To have a new line in the edit field, press Ctrl+Enter. To select all the contents in edit field, press Ctrl+A.

Vic supports PCRE regular expressions, which stand for "Pearl Compatible Regular Expression". You'll find a good tutorial on the subject at: www.regular-expressions.info/tutorial.html.

We can not check Case sensitive and Regular expression at the same time. If one of the two options is selected, you must uncheck the box before choosing the other.

By default, standard search and multi-lines search are case insensitive. To specify otherwise, check the Case sensitive option. By default, a search based on a regular expression is case sensitive. To specify otherwise, put the option i) at the very beginning of your regular expression.

The option In all tabs can expand your search to all open files. It can be used for any type of research.

When research is done in the sense of reading and no matches are found in the current tab, the search continues to the next tab, which is then traversed from the beginning. We can not search for next instance when the end of last tab is reached.

When research is done in the opposite direction of reading and no matches are found in the current tab, the search continues at the previous tab, which is then traversed from the end. We can not search for previous occurrence when the top of the first tab is reached.

The dialog box remains on the forefront once the research done. This is standard behavior that aims to facilitate the repetition of the same research, but has the disadvantage of obstructing the view when the current match is found just below the dialog. To avoid this, we can close the dialog box with Escape, and use respectively F2 and F3 keys instead of Previous and Next buttons.

When you call the dialog again, is found in the same state in which it was left at its last use.

The search always starts from the cursor position. No warning message is sent when the search is unsuccessful. The lack of movement of the cursor should be enough to realize it.

Replace (Ctrl+H)

Calls the Replace dialog box. The Previous and the Next buttons selects the match if there is one, but do not replace it. To replace the match, use the Replace button.

Once the Replace dialog box is closed, you can use the keys F2 and F3 to find previous occurrences and the following, and press F4 to replace the selected text with the replacement text.

When using the Replace all button, the dialog closes and a message listing the number of replacements. No message appears when no replacement has occurred.

If text is selected, the replacements are within the limits of the selection only. If nothing is selected, the replacements to extend the size of the current tab. If the option In all tabs is checked, the replacements are in all tabs, starting from the first.

For more details, read the documentation on the Find dialog box.

Find previous (F2)

Searches for a previous occurrence and selects it if found. The command has no effect if no previous occurrence is found, or when there is no more tab above to go when a multi-tabs searching occur.

Searching text corresponds to that which was specified when the last use of the Find or the Replace dialog box. As always, research starts from the cursor position.

Find next (F3)

Search for a next occurrence and select it if found. The command has no effect if no next occurrence is found, or when there is no more tab to go when a multi-tabs searching occur.

Search text corresponds to that which was specified when the last use of the Find or the Replace dialog box. As always, research starts from the cursor position.

Substitute (F4)

Replaces the selection by the replacement text that was specified when the last use of the Replace dialog box. The command has no effect if nothing is selected.

Select all (Ctrl+A)

Selects the contents of the current tab or the current editing area, as appropriate. The command has no effect when there is nothing to select.

View

Adjustments made to the View menu are saved in the Vic.ini file. They remain the same until you change them again.

Colors (Ctrl+E)

Invokes a dialog box that allows you to redefine the colors of the interface. When displayed, the dialog indicates the current color for each of two sets of colors used. To change the current color scheme, go to the View menu and check or uncheck 2nd color scheme, as appropriate.

The color schemes have no effect on the syntax highlighting feature. To set or modify the syntax highlighting for a type of file, edit the ColorationX.hes files and follow the instructions given therein to the top.

The dialog box contains a list that shows the 16 basic colors and remembers the code of each. You can use other colors. Note that the format to use is 0xBBVVRR, not 0xRRGGBB. This means we must express, in sequence, the hexadecimal values of Blue, Green and Red, and that each of these values can range from 00 to FF.

Language (Ctrl+L)

Calls the Language dialog box, from which one can go from French to English or vice versa. Upon activation of the OK button, a warning message said that the change will take effect at next Vic's launch.

Selection margin (Ctrl+M)

Invokes a dialog box that allows you to redefine the width of the selection margin. This margin is at the right of the numbering column. The maximum width allowed is 99 pixels. To eliminate this margin, enter zero (0).

The change extends to all tab and becomes effective upon activation of the OK button.

Font (Ctrl+D)

Invokes a dialog box that allows you to redefine the font type, the font size and the font style to use. Effects Underline and Strikethrough are also supported.

The change extends to all tabs and becomes effective upon activation of the OK button.

Tabulation (Ctrl+T)

Invokes a dialog box to reset the tab width. The number entered corresponds to the number of times the width of a character. The maximum width allowed is 99. If you entered zero (0), the effect is the same as if it had been one (1).

The change extends to all tabs and becomes effective upon activation of the OK button.

2nd colors set

Allows you to switch between two color schemes. Each of these can adjust the color of the following nine (9) elements:

To redefine the colors of the interface, go through the dialog Colors. To define or modify the syntax highlighting for a type of file, edit the ColorationX.hes files and follow instructions in the file's header.

The 1st colors set is bound to syntactic coloration file named Coloration1.hes, and the 2nd, to Coloration2.hes. This independence allows a syntactic coloration when we are in black on white, and a different syntactic coloration when we switch to white on black.

Status bar

Allows to show or hide the status bar. This bar has 4 parts which respectively provide the following information:

1) the current line on the total number of rows, folowed by the number of the current column on the total number of columns in the row; 2) the number of characters selected from the total number of characters; 3) the number of the current character in the ANSI charsets; 4) the number of opened files.

Path and filename

Toggles between two display formats of the file name in the title bar. The short format displays the name and extension of the current file. The long format displays, also, the full path to the folder where the file is. The requested change extends to all tabs and takes effect immediately.

Syntax highlighting

Allows you to enable or disable syntax highlighting. The change extends to all tabs and takes effect immediately.

The activation or deactivation of the highlighting has no effect on color background and other colors of the interface. To change these, go through the Colors dialog box.

Auto indentation

Allows you to enable or disable automatic indentation. The change extends to all tabs and takes effect immediately.

Note that this change has no impact on the behavior of the smart key Enter, explained in Section 5.

Multi-tabs

Allows you to enable or disable multi-tabs. A warning message is sent to say that the change will become effective at the next Vic's launch.

Line numbering

Allows to show or hide the line numbering column. The change extends to all tabs and takes effect immediately. It has no impact on the margin selection.

Increase font size (Ctrl++)

Increase the font size. The change extends to all tabs and takes effect immediately. It extends to the dialog boxes to a maximum size of 14 pixels, but it did not affect the size of text menus and other components of the interface.

Instead of Ctrl++, one can do Ctrl+Mouse wheel up. On an evolved touchpad, gestures consisting of two fingers away from each other is also supported.

Decrease font size (Ctrl+-)

Decrease the font size. The change extends to all tabs and takes effect immediately. It has no impact on the size of menus' texts and other components of the interface.

Instead of Ctrl+-, one can do Ctrl+Mouse wheel down. On an evolved touchpad, gestures consisting of matching two fingers from each other is also supported.

Back to normal font size (Ctrl+0)

Reset the size font to normal, which is 11 pixels. The change extends to all tabs and takes effect immediately. It has no impact on the size of menus' texts and other components of the interface.

Maximize/restore (Win+Up)

Maximizes the Vic's window when it is restored, and restores when minimized.

Minimize/restore (Win+Down)

Reduces the Vic's window when it is restored, and restores when maximized.

Maximize to the left side (Win+Left)

Maximizes the Vic's window so it fills the left half of the screen.

Maximize to the right side (Win+Right)

Maximizes the Vic's window so it fills the right half of the screen.

Increase transparency (Alt+Win+Up)

Increases by 25% the coefficient of transparency of the Vic's window. Beyond 100%, the account again to 25%. The values are 25, 50, 75 and 100%.

Decrease transparency (Alt+Win+Down)

Decreases by 25% the coefficient of transparency of the Vic's window. Below 100%, the account again to 100%. The values are 100, 75, 50 and 25%.

Line length (Ctrl+W)

Invokes a dialog box that lets you adjust the text to the desired length of line. The cuts are made at the indicated position or any position closest to that there is a space or one of the following characters: !$%),./:;>?]}.

The cuts are made with a single linefeed (LF) instead of a standard newline (CR+LF). What distinguishes them from one another and can easily go back later.

To change the length of the line, call again the command and use another value. To return to the original line length, repeat the command and enter zero (0). At each use, the simple line breaks (LF) are removed, and then, when it is relevant, inserted at another location.

The change affects only the text of the current tab.

To manually insert a simple line feed (LF), press Ins+Enter.

Insert

Conditional comment (Ins+E)

Inserts exactly <!--[if IE 6]>|<![endif]-->, and positions the cursor at the location indicated by the sign |. The content of this comment will be taken into consideration by Internet Explorer 6 and ignored by all other browsers.

To target a different version, simply change the number. You can also use the following prefixes to target multiple versions of Internet Explorer simultaneously:

When using a prefix, it should be placed before IE. For example, [if LTE IE 7] can target all versions of Internet Explorer lower or equal to version 7.

CSS comment (Ins+F)

When nothing is selected, the command inserts exactly /* | */, and positions the cursor at the location indicated by the sign |.

When a portion of text is selected in advance, it will be nested within the comment. After the command, the cursor is placed at the end of the comment.

HTML comment (Ins+G)

When nothing is selected, the command inserts exactly <!- | ->, and positions the cursor at the location indicated by the sign |.

When a portion of text is selected in advance, it will be nested within the comment. After the command, the cursor is placed at the end of the comment.

Comment/uncomment the block (Ins+;)

Checks if the first visible character of the block selected is a semicolon ;.

If so, the command has the effect of deleting the initial semicolon of each line of the selected block of text, as well as any spaces or tab characters surrounding this semi-colon.

If not, the order has the effect of adding just a semicolon followed by a space at the beginning of each line of the selected block of text.

When nothing is selected, the command will comment or uncomment the current line only.

Doctype HTML 4.01 Strict (Ins+1)

Inserts the official HTML 4.01 Strict Doctype. Namely:

DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
 "http://www.w3.org/TR/html4/strict.dtd">

Doctype HTML 4.01 Transitional (Ins+2)

Inserts the official HTML 4.01 Transitional Doctype. Namely:

DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional// EN"
 "http://www.w3.org/TR/html4/loose.dtd">

Doctype HTML 4.01 Frameset (Ins+3)

Inserts the official HTML 4.01 Frameset Doctype. Namely:

DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
 "http://www.w3.org/TR/html4/frameset.dtd">

Doctype XHTML 1.0 Strict (Ins+4)

Inserts the official XHTML 1.0 Strict Doctype. Namely:

DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

Doctype XHTML 1.0 Transitional (Ins+5)

Inserts the official XHTML 1.0 Transitional Doctype. Namely:

DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional// EN"
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

Doctype XHTML 1.0 Frameset (Ins+6)

Inserts the official XHTML 1.0 Frameset Doctype. Namely:

DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">

Date (Ins+D)

Inserts the current date in international format 1999-12-31.

Hour (Ins+H)

Inserts the current time in 24 hours format 24:00.

HTML class attribute (Ins+C)

Inserts exactly class="|" preceded by a space, and positions the cursor between the two quotation marks.

HTML id attribute (Ins+I)

Inserts exactly id="|" preceded by a space, and positions the cursor between the two quotation marks.

HTML lang attribute (Ins+L)

Inserts exactly lang="|" xml:lang="" preceded by a space, and positions the cursor between the first two quotes. This duplication of information is required to ensure backwards compatibility of XHTML 1.0 to HTML. If you develop in HTML, subtract xml:lang="".

HTML name attribute (Ins+N)

Inserts exactly name="|" preceded by a space, and positions the cursor between the two quotation marks.

HTML style attribute (Ins+S)

Inserts exactly style="|" preceded by a space, and positions the cursor between the two quotation marks.

HTML title attribute (Ins+T)

Inserts exactly title="|" preceded by a space, and positions the cursor between the two quotation marks.

Special character (Ins+P)

Calls the Special characters dialog box, from which you can select one or more characters to copy into the clipboard. The characters are those of the ANSI charsets (known as Windows Western), and the display font is Courier New.

Unix newline (Ins+Enter)

Inserts a simple line feed (LF) at the location cursor. This can be useful for manually segmenting a line while you can easily restore it later via the command Line length.

Predefined HTML 4.01 template (Ins+F4)

Inserts the complete skeleton of an HTML 4.01 Strict file and places the cursor between the opening and closing tags of the title element. The encoding declared in the meta tag is windows-1252. If you use another, please correct.

Predefined XHTML 1.0 template (Ins+F1)

Inserts the complete skeleton of an XHTML 1.0 Strict file and places the cursor between the quotes of the attribute xml:lang in the html tag. The encoding declared in the meta tag is windows-1252. If you use another, please correct.

Tools

Increase indent (Tab)

When there is no visible character on the left of the cursor, Tab inserts a tab. When a block of text is selected, Tab adds a tab at the beginning of each row in the block. When there is a visible character to the left of the cursor, Tab has other effects described in Section 5.

Decrease indent (Shift+Tab)

When a block of text is selected, Shift+Tab subtracts a space or a tab at the beginning of each row in the block. When there is nothing selected, Shift+Tab subtracted space or tab to the left of the cursor. And when there is no space or tab, the command has no effect.

Move block down (Ctrl+Shift+Down)

Moves the selected block of text one line down, or the current line if nothing is selected. The cursor follows retaining the same position in the line.

The command has no effect when trying to go below the last line.

Move block up (Ctrl+Shift+Down)

Moves the selected block of text one line up, or the current line if nothing is selected. The cursor follows retaining the same position in the line.

The command has no effect when trying to go higher than the first line.

Duplicate the selection (Ctrl+Shift+L)

Inserts below the selected block of text a block of text that is identical.

When nothing is selected, the command has the effect of duplicating the current line.

Transform into lowercase (Ctrl+Shift+B)

Turns the selected text in lowercase letters. When nothing is selected or that everything is in lowercase letters, the command has no effect.

Transform into uppercase (Ctrl+Shift+H)

Turns the selected text in capital letters. When nothing is selected or that everything is in capital letters, the command has no effect.

Capitalize each word (Ctrl+Shift+I)

Puts the first letter of each word in selected text to uppercase, and subsequent letters in lowercase. When nothing is selected or the initials of words already in uppercase, the command has no effect.

Show the calendar (Ctrl+Shift+C)

Opens the window of a perpetual calendar that displays the 12 months this year with the current date highlighted. To close the calendar, press Escape or do Alt+F4.

Take a color (Ctrl+Shift+P)

Displays coordinates and color of pixel flew in a balloon tip located near the pointer. Data are updated as and as the pointer moves. The values X and Y are expressed in pixels, while the color is in #RRGGBB format.

A blow on the Enter key puts the color value in the clipboard and removes the balloon tip. A blow on the Escape key only removes the balloon tip.

Automatic replacements (Ctrl+Shift+R)

Invokes a dialog box from which you can add, edit or delete a row in the list of automatic replacements. When finished, you can simply close the box dialog, but before the changes take effect, you must activate the OK button and answer that you want to restart Vic.

The list of predefined automatic replacements is set out in Appendix 3. We also refer to this Appendix for further details.

Sort (Ctrl+Shift+T)

Calls the Sort dialog box, from which you can order the elements within a selection. By default, we ordered elements arranged on separate lines following an ascending alphabetical order, and without removing duplicates. A warning message appears when nothing is selected.

Specify the separator to use if the elements are separated by something other than a new line. For example, if they are separated from each other by a comma, a space or a tab.

To process text, let Alphabetical checked. To deal with numbers, check Digital. The ascending order is the normal order (0 to 9 and A to Z). The descending order corresponds to the normal inverse (9 to 0, and Z to A). If we treat together words and numbers, numbers are sorted first, then words.

Removing duplicates can be applied to any type of sorting.

Replace leading spaces with tabs (Ctrl+Shift+A)

Replaces spaces start line by tabs within the selected portion of text. The command has no effect if nothing is selected or if the selection does not contain spaces.

Replace leading tabs with spaces (Ctrl+Shift+E)

Replaces tabs start line with spaces within the portion of text selected. The command has no effect if nothing is selected or if the selection does not contain tabs.

Delete trailing whites spaces (Ctrl+Shift+F)

Removes spaces and tabs located at the end of each line of the selected text block. The command has no effect if nothing is selected or if the ends of lines selected block does not contain spaces or tabs.

Delete blank lines (Ctrl+Shift+K)

Removes all blank lines located within the block of selected text. The command has no effect if nothing is selected or if selection does not contain a blank line.

Delete HTML tags (Ctrl+Shift+M)

Removes from the selected block of text all HTML tags and HTML comments, as well as the content of all script, noscript and style sections.

The command has no effect if nothing is selected or if the selection contains no elements just enumerated.

Compact the HTML/XHTML code (Alt+Ctrl+C)

Removes HTML comments, blank lines, start and end of file, as well as carriage returns, tabs and spaces used to indent the code, except within a <pre> element.

Optional quotes around attribute values are cut off when the file is in HTML 4.01.

Convert XHTML 1.0 to HTML 4.01 (Ctrl+Alt+X)

Checks if the file has a Doctype XHTML 1.0, and if so, put the Doctype HTML 4.01 instead.

Return entity and false UTF-8 to ANSI (Alt+Ctrl+U)

Returns HTML entities and false UTF-8 characters in ANSI standard, and changes the expression charset=utf-8 to charset=windows-1252 if found. For example, &eacute; will be replaced by .

The false UTF-8 is distinguished by the presence of strange signs instead of accented letters. For example, é instead of .

When using this command, a question is asked to limit conversion to the current tab or extend to all open tabs. All the characters of the ANSI table are supported. The command has no effect when there is no entity nor false UTF-8.

Format/Rewrite CSS code (CapsLock+Y)

Formats the CSS code selected and provides some rewriting code options while being processed. A warning is issued when nothing is selected.

1) Use shorthand properties or not

Once the command is run, it asks if you want to write compact rules are applied. If you answered no, the alterations made to the code will be limited to its visual layout. If you answered yes, the code will be processed and rewritten so as to obtain a code lighter and shorter as permitted Recommendation W3C CSS 2.1. This can then affect the selectors, values and properties as follows:

At selectors, compact writing rules:

In terms of values, compact writing rules:

At the property level, compact writing rules:

Example No. 1

Before applying compact writing rules:

ul#nav {
   margin-top: 0px;
   margin-bottom: 0px;
   margin-left: 20px;
   margin-right: 20px;
   list-style-type: disc;
   list-style-image: url("../img/puce.png");
   list-style-position: outside;
}

After applying compact writing rules:

ul#nav {
   list-style: url(../img/puce.png) outside disc;
   margin: 0 20px;
}
Example No. 2

Before applying compact writing rules:

body {
   font-size: 0.95em;
   font-weight: bold;
   font-family: arial,helvetica,sans-serif;
   line-height: 1.5;
}

After applying compact writing rules:

body {
   font: bold .95em/1.5 arial,helvetica,sans-serif;
}

Notes:

  1. According to the CSS 2.1 specification, properties are not be merged in the absence of font-size and font-family, and if there is a value for line-height, it will be included in the final result.
  2. The properties that lend themselves to writing shorthand are: background, border, border-bottom, border-left, border-right, border-top, cue, font, list-style, margin, padding, pause and outline.
2) Final presentation

What CSS code has been compacted or not, the user must choose between two kinds of final presentation: wide-spaced layout and compact layout.

1) The compact layout:

2) The wide-spaced layout:

Example

Here is an example to illustrate the various outcomes that can result from the original code as follows:

/* Structure */
  body { margin:0px auto 0px auto;
  font-size:0.9em;
  font-family:arial,sans-serif;
  color:#112233;
  background:#FFFFFF; }

1. Rewrite shorter = No; Arrange compactly = No

/* Structure */
body {
   margin: 0px auto 0px auto;
   font-size: 0.9em;
   font-family: arial, sans-serif;
   color: #112233;
   background: #FFFFFF;
}

2. Rewrite shorter = Yes; Arrange compactly = No

/* Structure */
body {
   background: #fff;
   color: #123;
   font: .9em arial, sans-serif;
   margin: 0 auto;
}

3. Rewrite shorter = Yes; Arrange compactly = Yes

body {background:#fff;color:#333;font:.9em arial,sans-serif;margin:0 auto}

Note that there would be no great interest to refuse the application of scoring rules brief, and then ask that the code be arranged compactly. That is why we have not seen fit to illustrate this possibility.

HTML

General principles

Controls are provided for commonly used HTML tags. They are all based on the CapsLock key.

You can choose between two methods for marking up text.

Method 1: select the text and mark it then. For example, select the lines to create a bulleted list, then make CapsLock+U to generate the appropriate markup.

Method 2: Generate the tags first and then add your text. For example, do CapsLock+K to generate the tags of a block quotation, and then type or paste it if it is in the clipboard.

To generate the desired set of tags you can use a specific command or type the tag name followed by a hit the Tab key. For example, tags for a hyperlink you can make CapsLock+A or type the letter A and press Tab. In both cases you get this: <a href="|"></a>.

Special notes

Tagging an image, a link, a form control or a table obey their respective internal logic.

Image (CapsLock+G)

Inserting an image automatically registers the path between the image of the current file and the dimensions of the image width and height. For example, <img src="img/Vic.ico" width="128" height="128" alt="|">. At the end, you just have to write a proper alternative text.

When generating a link, Vic automatically detects whether the selected text is an email address, web address or a link label. For example, the command CapsLock+A will turn the following texts in different ways:

Example 1

Before:
normandlamoureux.com
After:

<a href="http://normandlamoureux.com">|</a>
Example 2

Before:
normand.lamoureux@gmail.com
After:

<a href="mailto:normand.lamoureux@gmail.com">|</a>
Example 3

Before:
Download the last version of Vic
After:

<a href="|">Download the last version of Vic</a>

Note that the prefix http:// and mailto: are added only when they are absent from the original text. Also note that the signs & who might be in the starting URL would automatically be transformed into &amp; to ensure code validity.

Form... (CapsLock+F)

The command invokes a dialog box from which it will be possible to insert the HTML form controls you want.

Vic's window is automatically activated as soon as you insert the code. The keyboard command Shift+Escape get the focus back to the dialog box. When finished, a strike on Escape can then close this dialog.

Table... (CapsLock+T)

The command invokes a dialog box that has two parts, which can either convert the selected text in a table or create a table if nothing is selected.

The first part of the dialog box is used to determine the size of the table. The information we request is needed there. If content was selected when making the order, Vic automatically calculates and indicates the number of rows and columns that the table should have a total. If nothing is selected, you will need to register the numbers of rows and columns you want.

The second part of the dialog is about the accessibility of the table. This part is optional and has to be informed if your table has several levels of headers of columns or more levels of header lines. The values you enter in this part allow Vic to explicitly associate data cells with header cells that correspond. This association will be using the id and headers attributes. If you leave blank, the table will be generated without these attributes.

The values of the id and headers attributes will come in the form t0l0c0, where t is for table, l to the line, c for column, and 0 for a number between 0 and 99. The number attached to the letter t corresponds to the one you have entered in the field labeled unique identifier. You can leave this field blank if you have only one table in your page. However, make sure that each table has a unique identification number if you have several.

The selected text should be organized as follows to be interpreted correctly: the data must be separated from each other by a tab character, and the rows by a single line feed (LF) or standard (CR+LF). In most cases, the copied and pasted a table from a spreadsheet or a word processor should automatically match the requirements.

Can be left empty cells. No need to remove blank lines and unnecessary spaces or mark the location of empty cells before, Vic finds all this and cares. However, you will need to edit the code if your table includes merged cells.

Markers

Place a marker (Alt+Ctrl+M)

Saves the current cursor position to be able to quickly return later.

The markers are sorted in ascending order and stored in separate files with extension mrk..

You can place as many markers of position you want in a single file. When multiple tabs are open, Vic is often markers of each.

The command has no effect if a position marker is already placed at the location of the cursor.

Jump to the next marker (Alt+Ctrl+J)

Place the cursor at the position marker following, if any. If there are none, or the cursor moves first marker of the page, if any, or the command has no effect. An error message is issued when no marker exists in the current page.

Jump to the previous marker (Alt+Ctrl+Maj+J)

Place the cursor at the previous marker, if any. If there are none, or the cursor moves to the last marker on the page, if any, or the command has no effect. An error message is issued when no marker exists in the current page.

Delete the current marker (Alt+Maj+M)

Removes the current marker from the list of markers, if any. An error message is issued if no markers coincides with the position of the cursor, or if no marker has been placed on the current page.

Delete all markers... (Alt+Ctrl+Maj+M)

Triggers the opening of a dialog box that asks if you want to extend the removal of markers in all tabs.

If you answer "Yes", all markers of all the tabs will be removed. If you answered "No", only markers of the current tab will be removed.

The command has no effect if you activate the "Cancel" button or if you close the dialog with Escape or Alt+ F4.

Plugins

To work, your plugin must be an .ahk script placed in the plugins folder. The list of plugins is automatically created at Vic's launch.

Also, all scripts must have the two following lines of code in its beginning:

SetTitleMatchMode, 2
WinActivate, - Vic

Help

Documentation (F1)

Opens the Vic_En.html file in the default Web browser. This is the documentation file that you are reading.

RegEx Guide (F11)

Opens the XR.doc file in the default Web browser. It is a complete (French) documentation on RegEx flavor usable with Vic, which is PCRE (Perl Compatible Regular Expression).

ASCII/ANSI Character Map (F12)

Opens a dialog box to show characters 32 to 127 from the Windows-1252 page code. These characters can be selected.

Press Escape or Alt+F4 to close this dialog box.

Check for the existence of an update

Returns an alert box to confirm that you have the latest version of Vic, or to offer to download it on the contrary.

About

Inquires about licensing and copyrights related to Vic and its integrated components.

To access the original HiEdit control's license, open the HiEdit.inc file located in the hie folder. To access the original Dlg module's license, open the Dlg.ahk file located in the inc folder.

Vic's smart keys

The keys Home, Enter, Tab and Backspace have special behaviors, depending on the manner or context in which they are used. This section aims to explain these behaviors.

Home

A hit on the Home key moves the cursor at the beginning of the current line. A second hit will reach the spot after the whites characters located in front of the line.

Here is an example, where the sign | is the cursor. Suppose that initially the cursor is at the end of the line.

After a first hit on the Home key, then:

|    <table cellspacing="1">

After a second hit on the Home key, then:

    |<table cellspacing="1">

Note that a third hit on the same key would bring the cursor at the start line, a fourth early in the text, and so on.

Enter

New line

Used alone, the Enter key inserts a standard newline. You should know that Windows environment, a new line consists of a carriage return (CR) followed by a (LF).

The command Ins+Enter inserts a single line feed (LF). This can be used to manually break up a line that will divide differently then, via the function called Line length.

Indented new line

When the current line is indented, a hit the Enter key will result in generating a new line indented the same way. To prevent this behavior, go to the View menu and uncheck Auto indentation.

Vertical indentation

When the cursor is between two tags, one hit the Enter key will have the effect to put the tags on separate lines and to insert a line indented one level more. For example:

Before:

  <div>|</div>

After:

  <div>
    |
  </div>

This behavior does not occur when the cursor is between two start tags. For example, if the cursor is between tags <li> and <span>, a strike on the Enter key would simply refer the tag <span> to the next line.

Bullet generation

When the first non-blank character of current line acts as a bullet, the command Shift+Enter will result in generating a new line beginning with an identical bullet. For example:

Before:

    - Raspberry|

After:

    - Raspberry
    - |

If the starting line is indented, the new line will be. A sign -, +, * or followed by a space or a tab is automatically regarded as playing the role of a bullet. The em dash and en dash also. These signs can be used alone or combined. For example, the chains -+, ++ or *** followed by a space or a tab are considered as bullets.

To prevent the generation of a bullet in the top line, make your newline with Enter.

Automatic numbering

When the first non-blank character of the current line is a number followed by a space, a tab, a dot ".", a hyphen "-", a closing parenthesis ")" or a combination of these signs, the command Shift+Enter will generate a new numbered line in the same way but incremented by one (1). For example:

Before:

    7) Spread hazelnuts|

After:

    7) Spread hazelnuts
    8) |

If the starting line is indented, the new line will be. When two or more groups of numbers are separated by dots (.), only the last group of digits will be incremented. For example:

Before:

5.6  Date of next meeting|

After:

5.6  Date of next meeting
5.7  |

To prevent the generation numbering beginning of the line, make your newline with a standard Enter.

Tab

In a selection

When a block of text is selected, Tab indents each line of the block, while Tab decreases withdrawal.

Here is an example of increased withdrawal:

Before:

<ul> 
  <li>Strawberry</li> 
  <li>Banana</li> 
</ul>|

After:

  <ul> 
    <li>Strawberry</li> 
    <li>Banana</li> 
  </ul>|

The increase of the withdrawal is done by adding a tab character at the beginning of each line. The decrease of the withdrawal is done by removing a tab character or a space when there is not.

Tag generator

When the cursor is on the right of a word, Tab creates a pair of tags with the word as element name. Here is an example where | indicates the cursor position:

Before:

strong|

After:

<strong>|</strong>

Appropriate forms are provided for all official tags of HTML 4.01 and XHTML 1.0. For example, the letter a followed by Tab key will produce <a href="|"></a> instead of <a>|</a>.

To prevent the automatic generation of a tag and add a tab character when the cursor is located just to the right of a text, do RAlt+Tab.

Link generator

When the cursor is on the right of an electronic address, Tab will create a hyperlink with the address in the href attribute. The address type is automatically detected. Here is an example with an email address:

Before:

quidam@eldorado.com|

After:

<a href="mailto:quidam@eldorado.com">|</a>

The email addresses are automatically preceded by the prefix mailto:. Web addresses, in turn, are automatically prefixed http://. For example:

Before:

www.eldorado.com|

After:

<a href="http://www.eldorado.com">|</a>

Note that the http:// prefix is not added when it is in the starting address. Moreover, if ampersands (&) are present in the URL, they will automatically turn into their valid form (&amp;).

To prevent the automatic generation of a link and add a tab character when the cursor is on the right of an electronic address, do RAlt+Tab.

Intelligent positioning

When the cursor is before the signs " or <, Tab moves the cursor within the next couple of quotation marks, in the middle of the next pair of tags or after the next sign >. Here is an example:

Initially:

<a href="|"></a>

After a 1st Tab:

<a href="">|</a>

After a 2nd Tab:

<a href=""></a>|

So, Tab moves the cursor to the next significant stop in HTML. What can work more efficiently and save time.

To prevent the intelligent positioning and add a tab character when the cursor is on the right of a " or a <, do RAlt+Tab.

Custom tag building

A simple syntax can be used to generate tags that meet specific requirements. It provides 3 types of the following possibilities:

  1. add an attribute in the opening tag of the element;
  2. predetermine the number of list items to generate;
  3. insert an attribute in the tag of each list item.

The following examples show the situation before and after a strike on Tab.

1st type of use

The syntax Element+Attribute can be used to create a pair of tags with the desired attribute in the opening tag. For example:

Before:

p+class|

After:

<p class="|"></p>

When an item is already naturally endowed with one or more HTML attributes, the attribute will be asked before the others. For example:

Before:

img+id|

After:

<img id="|" src="" width="" height="" alt="" />

Note that by default, is XHTML syntax will be used. If you develop in HTML, consider excluding the slash (/) and the space that precedes it.

2nd type of use

The syntax Element+Attribute+Number can be used to generate an HTML list structure with the number of list items wanted. For example:

Before:

ul+id+3|

After:

<ul id="|">
  <li></li>
  <li></li>
  <li></li>
</ul>

This syntax can be used for all types of HTML list. In the case of a definition list, the number produces pairs of elements dt and dd. Moreover, it can mean that one need not attribute by leaving a vacuum.

Before:

dl++2|

After:

<dl>
  <dt>|</dt>
  <dd></dd>
  <dt></dt>
  <dd></dd>
</ul>

The bulleted and numbered lists are automatically generated with at least one list item. It is therefore unnecessary, for example, to write ol++1 as ol is enough.

3rd type of use

The syntax Element+Attribute+Number+Attribute can be used to generate a list with an attribute in the tag of the container, and an attribute in each subsequent list items. For example:

Before:

ol+id+3+class|

After:

<ol id="|">
  <li class=""></li>
  <li class=""></li>
  <li class=""></li>
</ol>

As before, we can write ol++3+class if one does not need an attribute in the opening part of the block container. However, it should write ol++1+class if you want a single list item with attribute, for the syntax ol+++class will not work.

Backspace

When you just turn a selection into a list, a group of paragraphs or in an HTML table, the command Alt+Backspace can move the cursor to the beginning of the block of code, exactly where it should be find to add a class, a title or a unique identifier.

Here is a complete example developed in four (4) steps.

1. Initially, we have two selected words:

Strawberry 
Banana|

2. We press Alt+Ctrl+P and get a bulleted list:

<ul> 
  <li>Strawberry
  <li>Banana
</ul>|

3. Then, Alt+Backspace positions the cursor and removes the selection:

<ul|>
  <li>Strawberry
  <li>Banana
</ul>

4. Finally, it remains only to press Ins+C to add the desired attribute:

<ul class="|">
  <li>Strawberry
  <li>Banana
</ul>

Note that immediately after step #2 you could indent the code with one or more hits on Tab and then use the Alt+Backspace command with the same result.

Appendix 1: ANSI charsets

Here is the so-called "ANSI" charsets, which it would probably be more accurate to call Western Windows, Windows-1252 or CP-1252.

We included letters instead of characters that would otherwise go unnoticed. These are tabulation (TAB), linefeed (LF), space (SP) and non-breaking space (NBS).

0123456789
000NULSOHSTXETXEOTENQACKBELBSTAB
010LFVTFFCRSOSIDLEDC1DC2DC3
020DC4NAKSYNETBCANEMSUBESCFSGS
030RSUSSP!"#$%&'
040()*+,-./01
05023456789:;
060<=>?@ABCDE
070FGHIJKLMNO
080PQRSTUVWXY
090Z[\]^_`abc
100defghijklm
110nopqrstuvw
120xyz{|}~[][]
130
140[][][]
150[]
160NBS
170
180
190
200
210
220
230
240
250

The signs [] mark the location of characters who have no particular shape and displayed using a question mark or a square, depending on the font used.

Apart Tab (9) and linefeed (10), Vic displays the characters 0 through 31 with the same letters as we have indicated.

Appendix 2: Keyboard shortcuts

Here is an alphabetical list of keyboard shortcuts usable with Vic. The usual moving and selecting commands are supported, but they were omitted in order not to overload the list.

The behavior of buttons marked with an asterisk (*) is described in Section 5. The commands marked with an obel () are not included in the menus.

ShortcutAction
Alt+Backspace*Reach the top of the selection
Alt+Ctrl+CCompact the HTML/XHTML code
Alt+Ctrl+JJump to the next marker
Alt+Ctrl+MPlace a marker
Alt+Ctrl+Maj+JJump to the previous marker
Alt+Ctrl+Maj+MDelete all markers...
Alt+Ctrl+OOpen a saved session
Alt+Ctrl+SSave the current session
Alt+Ctrl+UReturn false UTF-8 into ANSI
Alt+Ctrl+WReload the current file
Alt+Ctrl+XConvert XHTML 1.0 to HTML 4.01
Alt+Ctrl+YFormat/Rewrite the selected CSS code
Alt+Ctrl+ZShow the list of opened files
Alt+DownScroll one line down (cursor don't move)
Alt+F4Close Vic's window and all openned tabs
Alt+LeftScroll one character to the left (cursor don't move)
Alt+Maj+MDelete the current marker
Alt+RightScroll one character to the right (cursor don't move)
Alt+UpScroll one line up (cursor don't move)
Alt+Win+DownDecrease Vic's window transparency by 25%
Alt+Win+UpIncrease Vic's window transparency by 25%
ApplicationOpen the context menu
CapsLock+1Heading 1 HTML tag
CapsLock+2Heading 2 HTML tag
CapsLock+3Heading 3 HTML tag
CapsLock+4Heading 4 HTML tag
CapsLock+5Heading 5 HTML tag
CapsLock+6Heading 6 HTML tag
CapsLock+AAnchor/Hyperlink HTML tag
CapsLock+BBold HTML tag
CapsLock+CCited text HTML tag
CapsLock+DelDeleted text HTML tag
CapsLock+EEmphasis HTML tag
CapsLock+EnterBreaking row HTML tag
CapsLock+FHTML Form controls dialog box
CapsLock+GImage reference HTML tag
CapsLock+IItalic HTML tag
CapsLock+InsInserted text HTML tag
CapsLock+KBlockquote HTML tag
CapsLock+MConvert into Mac file format
CapsLock+OOrdered List HTML tag
CapsLock+PParagraph HTML tag
CapsLock+QQuote HTML tag
CapsLock+SpaceHorizontal row HTML tag
CapsLock+SStrong HTML tag
CapsLock+SubSubscript HTML tag
CapsLock+SupSuperscript HTML tag
CapsLock+THTML Table dialog box
CapsLock+UUnordered List HTML tag
CapsLock+WConvert into Windows file format
CapsLock+XConvert into Unix file format
Ctrl++Increase the font size
Ctrl+-Decrease the font size
Ctrl+0Back to the normal font size
Ctrl+ASelect all
Ctrl+CCopy into the clipboard
Ctrl+DChange the current font
Crtl+EChange the interface colors
Ctrl+FFind a string
Ctrl+F12Save the current file with another name
Ctrl+F4Close the current tab
Ctrl+GGo to a line or a column
Ctrl+HReplace a string by another one
Ctrl+JFind the other member of the pair
Ctrl+LSwitch the natural language
Crtl+MSet the margin selection's width
Ctrl+NOpen a new empty tab
Ctrl+OOpen a saved file in a new tab
Ctrl+PPrint the current file
Ctrl+SSave the current file
Ctrl+Shift+AReplace leading spaces with tabs
Ctrl+Shift+BTransform the selection into lowercase
Ctrl+Shift+DownMove one line down the selected block or the current line
Ctrl+Shift+EReplace leading tabs with spaces
Ctrl+Shift+FDelete trailing whites spaces
Ctrl+Shift+F4Close all tabs
Ctrl+Shift+HTransform the selection into uppercase
Ctrl+Shift+ITransform the initials of each word into uppercase
Ctrl+Shift+KDelete blank lines
Ctrl+Shift+LDuplicate the selected block or the current line
Ctrl+Shift+MDelete HTML tags
Ctrl+Shift+PTake the color of a pixel
Ctrl+Shift+ROpen the automatic replacements manager
Ctrl+Shift+SSave all openned files
Ctrl+Shift+TMake a sort
Ctrl+Shift+UpMove one line up the selected block or the current line
Crtl+TSet the tab width
Ctrl+VPaste from the clipboard
Ctrl+WSet the line length
Ctrl+XCut the current selection
Ctrl+YRedo the last cancelled action
Ctrl+ZUndo the last valid action
Ctrl+Mouse wheel downIncrease the font size
Ctrl+Mouse wheel upDecrease the font size
DelDelete the current selection
F1Open Vic's documentation file in a browser
F2Find the previous occurrence
F3Find the next occurrence
F4Substitute the current selection by the replacement text
Ins+1Insert the HTML 4.01 Strict Doctype
Ins+2Insert the HTML 4.01 Transitional Doctype
Ins+3Insert the HTML 4.01 Frameset Doctype
Ins+4Insert the XHTML 1.0 Strict Doctype
Ins+5Insert the XHTML 1.0 Transitional Doctype
Ins+6Insert the XHTML 1.0 Frameset Doctype
Ins+;Comment/Uncomment the block
Ins+CInsert an HTML class attribute
Ins+DInsert the current date
Ins+EInsert a conditional comment
Ins+EnterInsert a Unix newline (LF)
Ins+FInsert a CSS comment
Ins+F1Insert a predefined XHTML 1.0 template
Ins+F4Insert a predefined HTML 4.01 template
Ins+GInsert an HTML comment
Ins+HInsert the current hour
Ins+IInsert an HTML id attribute
Ins+LInsert an HTML lang attribute
Ins+NInsert an HTML name attribute
Ins+PInsert a special character
Ins+SInsert an HTML style attribute
Ins+TInsert an HTML title attribute
Shift+EscapeGet the focus back to Form dialog
Shift+F10Open the context menu
Shift+TabDecrease indent
Tab*Increase indent
Win+DownMinimize/Restore Vic
Win+LeftMaximize Vic to the left half of the screen
Win+RightMaximize Vic to the right half of the screen
Win+UpMaximize/Restore Vic

Appendix 3: Automatic replacements

Predefined replacements

Here is the list of Vic's predefined automatic replacements. The symbol | indicates the cursor location where relevant. The sign [] is a space.

TypeGet
"""|"
(((|)
{{{|}
[[[|]
%%%|%
<<|
+-
-[]-
_[]_
\[] (Non-breakable space)
\.[]
\%
\|
\?
\*
\#
\+
\-
\:-
\...
\ae
\AE
\B
\c
\C
\D
\E
\f
\L
\n
\N
\oe
\OE
\0
\o/
\O/
\P
\R
\s~
\S
\u
\x
\Y
\z
\Z
loremLorem ipsum dolor sit amet, ()

Add, modify or delete a replacement

To add, modify or delete one or more automatic replacements, press Ctrl+Shift+R.

A checkbox prevents or, conversely, allows that automatic replacements will trigger in a window other than the window of Vic.

To add an automatic replacement, select the Add button, type the abbreviation and the replacement text you want, and press OK. The abbreviation is the text that will trigger the action. The replacement text is the one that will replace the abbreviation.

An abbreviation can have up to 40 characters and contain any sign directly accessible from the keyboard except a line break. Press Ctrl+Tab to insert a tab.

A replacement text can have up to 5000 characters and contain any sign directly accessible from the keyboard including the newline. Press Ctrl+Enter to insert a line break, and Ctrl+Tab to insert a tab.

Default behavior

By default, an automatic replacement can occurs only when you press Space, Tab, Enter or any of the following characters: -()[]{}':;"/ \,.?! The abbreviation is then erased and the replacement text inserted, followed by the character used to trigger the action.

The replacement text adopts the case of the abbreviation. This means that if you type the abbreviation in capital letters, the replacement text will pop also capitalized. If only the first letter of the abbreviation is capitalized, then the first letter of replacement text will be turned into capital. In all other case, the replacement text will appear as it was originally defined.

Options explained

The following options allow you to change the default behavior of automatic replacement. There are 7 options and you can select several at once.

Trigger the hotstring instantly

Forces the replacement to happen as soon as the last letter of the abbreviation is typed, and not after a space or a punctuation sign as is normally the case.

For example, to transform btw into by the way as soon as you press w.

Allow a letter or a digit before the abbreviation

Normally, a replacement is done when the abbreviation is preceded by a space or a punctuation sign, but not a letter or a digit. This option allows the abbreviation to follow any character.

For example, to transform \0 in in front of any number.

Add replacement text without deleting the abbreviation

Generates a behavior similar to that which occurs in the case of a semi automatic seizure. The replacement text does not replace abbreviation, it is added.

For example, adding his name as soon as one types Sincerely, followed by a space.

Respect case sensitivity

Triggers the replacement only if the case of the abbreviation typed is the same as the defined abbreviation. Consequently, the replacement text can never adopt the case of the abbreviation as is normally the case.

For example, replace \CC by Celine Casgrain, but \cc by carbon copy.

Never change the case of the replacement text

Tolerates an abbreviation in capital letters as well as in lowercase, but does not allow that the replacement text adopts the case of the abbreviation as is normally the case.

For example, always replace ]jw or ]JW by John H. Wayne.

Delete the ending character used as trigger

Prevents the ending character that was typed to trigger the action to be added following the replacement text as is normally the case.

For example, to replace )phil by philosopher and be able to immediately add an s if necessary.

Send the replacement text as is, without any translating

Forces bits of code that could be part of the replacement text to be inserted as they were written. Otherwise, they will be construed during the course of the action.

For example, writing literally {Enter} when encountered rather than inserting a line break.

Appendix 4: Known limitations

This section lists the known issues and ways to bypass that can be used to address them.

Invisible characters

When syntax highlighting comes into play, the following characters are displayed in black, no matter the color of text: `~. This will make them invisible on a black background.

An exception occurs when those characters are part of a comment.

To circumvent this problem, select the portion of text to make visible, unable syntax highlighting, or choose a colored background that contrasts with the dark.

2010-2011, Normand Lamoureux.
Last update: July 16th, 2011.
Email.