CoLT Custom Formats
« Back to the CoLT Information Page
CoLT allows users to create custom formats to be used when copying a link location and its text. Beginning in version 2.4.2, these custom formats also apply to copying the current page location and page title. These two scenarios are called contexts. For the sake of this discussion, we’ll call the first scenario a Link Context, and the second a Page Context. Depending on which context is being used, the available variables have different meanings.
Link Context
Copying a link’s location and its text together is considered our link context. Let us work with the following example link:
With our sample link, the following variables are available, and represent the following values:
| Variable | Description | Example Value |
|---|---|---|
| %T | Link text | A Link to Google |
| %U | Link location | http://www.google.com/ |
| %I | Link title attribute text | This is the Title Attribute Text |
| %P | Current page title | Born Geek » Custom Formats |
| %R | Current page URL | http://www.borngeek.com/firefox/colt/custom-formats/ |
| %S | Not used in link context | — |
| %L | Local time | (localized time stamp) |
| %N | New line character | (new line) |
| %B | Tab character | (tab) |
Page Context
When copying the current page location and title, the available variables change meaning. Using this page as our working example, let’s take a look at what each variable means:
| Variable | Description | Example Value |
|---|---|---|
| %T | Page title | Born Geek » Custom Formats |
| %U | Page location | http://www.borngeek.com/firefox/colt/custom-formats/ |
| %I | Not used in page context | — |
| %P | Not used in page context | — |
| %R | Not used in page context | — |
| %S | Selected text | (any currently selected text) |
| %L | Local time | (localized time stamp) |
| %N | New line character | (new line) |
| %B | Tab character | (tab) |
