1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-31 20:32:27 +01:00

Some string highlighting stuff.

This commit is contained in:
Kris Maglione
2008-11-01 22:05:27 +00:00
parent 96f54b7c88
commit 9c3fb60bc3
2 changed files with 36 additions and 10 deletions

View File

@@ -485,10 +485,9 @@ liberator.registerObserver("load_commands", function ()
["padding: 0 1em 0 0; vertical-align: top", "text-align: center"],
([h.class,
<span style={"text-align: center; line-height: 1em;" + h.value + style}>XXX</span>,
template.maybeXML(h.value.replace(/\s+/g, "\u00a0")
.replace(/\b([-\w]+):/g, "<span class=\"hl-Filter\">$1:</span>"))]
template.highlightRegexp(h.value, /\b[-\w]+(?=:)/g)]
for (h in highlight)
if (!key || h.class.indexOf(key) > -1)));
if (!key || h.class.indexOf(key) > -1)));
commandline.echo(str, commandline.HL_NORMAL, commandline.FORCE_MULTILINE);
return;
}