manual report: autocomplete multiple tags
This commit is contained in:
parent
6a078efc5b
commit
0dc6adb70e
12
main.js
12
main.js
|
@ -2097,11 +2097,13 @@ function applycolorsonline(line, index, options)
|
|||
if (slashpos > spacepos)
|
||||
{
|
||||
var snippetpart = raw.substring(slashpos);
|
||||
var snippet = snippets.find(s => s.command.startsWith(snippetpart));
|
||||
if (snippet)
|
||||
{
|
||||
line += "<span style='color:lightgrey'>" + snippet.command.substr(pos - slashpos) + "</span>";
|
||||
}
|
||||
var matching = snippets
|
||||
.filter(s => s.command.startsWith(snippetpart))
|
||||
.map(s => s.command.substring(1));
|
||||
|
||||
line += "<span style='color:lightgrey'>";
|
||||
line += matching.join().substr(pos - slashpos - 1);
|
||||
line += "</span>";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue