1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 10:08:00 +01:00

Add :style and :delstyle commands. Need to write NEWS and :help entries, I suppose

This commit is contained in:
Kris Maglione
2008-10-03 23:14:30 +00:00
parent 268395a0fc
commit 1bb07747c4
5 changed files with 177 additions and 50 deletions

View File

@@ -697,23 +697,9 @@ liberator.Commands = function () //{{{
var cmdlist = getMatchingUserCommands(cmd);
if (cmdlist.length > 0)
{
XML.prettyPrinting = false;
var str = liberator.template.generic(
<table>
<tr class="hl-Title" align="left">
<th>Name</th>
<th>Args</th>
<th>Definition</th>
</tr>
{
liberator.template.map(cmdlist, function (cmd)
<tr>
<td>{cmd.name}</td>
<td>*</td>
<td>{cmd.replacementText || "function () { ... }"}</td>
</tr>)
}
</table>);
var str = liberator.template.tabular(["Name", "Args", "Definition"],
([cmd.name, "*", cmd.replacementText || "function () { ... }"]
for each (cmd in cmdlist)));
liberator.commandline.echo(str, liberator.commandline.HL_NORMAL, liberator.commandline.FORCE_MULTILINE);
}
else