diff --git a/test-browser/plugin/index.html b/test-browser/plugin/index.html
index e73ab7fc0b..f81dc19b70 100644
--- a/test-browser/plugin/index.html
+++ b/test-browser/plugin/index.html
@@ -37,7 +37,7 @@
PLUGIN
-
+
add config
remove config
get config
@@ -47,6 +47,7 @@
setcontentof
getcontentof
getcurrent
+ sethighlight
diff --git a/test-browser/plugin/plugin.js b/test-browser/plugin/plugin.js
index 55bdcb4574..27e1305de3 100644
--- a/test-browser/plugin/plugin.js
+++ b/test-browser/plugin/plugin.js
@@ -68,4 +68,9 @@ window.onload = function () {
extension.call('editor', 'getCurrentFile', [],
function (error, result) { console.log(error, result) })
})
+
+ document.querySelector('input#sethighlight').addEventListener('click', function () {
+ extension.call('editor', 'highlight', [document.getElementById('filename').value, document.getElementById('valuetosend').value, document.getElementById('valuetosend2').value],
+ function (error, result) { console.log(error, result) })
+ })
}