/***** BEGIN LICENSE BLOCK ***** {{{
Version: MPL 1.1/GPL 2.0/LGPL 2.1
The contents of this file are subject to the Mozilla Public License Version
1.1 (the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS IS" basis,
WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
for the specific language governing rights and limitations under the
License.
(c) 2006-2007: Martin Stubenschrott First there was a Navigator, then there was an Explorer. Later it was time for a Konqueror. Now it\'s time for an Imperator, the VIMperator :) Vimperator is a free browser add-on for Firefox, which makes it look and behave like the Vim text editor. ' +
'It has similar key bindings, and you could call it a modal webbrowser, as key bindings differ according to which mode you are in. Warning: To provide the most authentic Vim experience, the Firefox menubar and toolbar were hidden. If you really need them, type: Since Vimperator\'s GUI is embedded into a toolbar, it may look too 3D-like with the default theme. For best experience, I therefore recommend the Whitehart theme. Vimperator was written by Martin Stubenschrott. If you appreciate my work on Vimperator, you can either send me greetings, patches ' +
'or make a donation: ' +
' The denotion of modifier keys is like in Vim, so C- means the Control key, M- the Meta key, A- the Alt key and S- the Shift key.Vimperator
' +
'Introduction
' +
':set guioptions=mT to get it back. ' +
'If you don\'t like Vimperator at all, you can uninstall it by typing :addons and remove/disable it. ' +
'If you like it, but can\'t remember the shortcuts, press F1 or :help to get this help window back.';
for (var j=0; j < commands[i][0].length; j++)
{
var cmd_name = commands[i][0][j];
cmd_name = cmd_name.replace(//g, ">");
ret += " " +beg+ cmd_name +end+ '';
}
ret += ' ';
}
return ret;
}
function makeSettingsHelpString(command)
{
var ret = "";
ret = command[5] + " (default: ';
for (var j=0; j < commands[i][1].length; j++)
{
var usage = commands[i][1][j];
usage = usage.replace(/<(?!br\/>)/g, "<");
usage = usage.replace(/[^b][^r][^\/]>/g, ">");
ret += " " +beg+ usage +end+ '
';
}
ret += '';
if (func)
ret += func.call(this, commands[i]);
if (commands[i][2])
{
if(func)
ret += "
"
ret += commands[i][2]; // the help description
}
ret += '";
if (command[5] == "boolean")
{
if(command[6] == true)
ret += "on";
else
ret += "off";
}
else
{
if (typeof command[6] == 'string' && command[6].length == 0)
ret += "''";
else
ret += command[6];
}
ret += ")
";
return ret;
}
var mappings = 'Mappings
'+
''
mappings += makeHelpString(g_mappings, "#102663", "", "", null);
mappings += '
What is the meaning of life, the universe and everything?
' +
'Douglas Adams, the only person who knew what this question really was about is
' +
'now dead, unfortunately. So now you might wonder what the meaning of death
' +
'is...