Hello Scite-interest,
File SciTEhelp.js:
>-------------------------------------------------------------
// SciTE.files=*.properties;*.lua
// command.help.$(SciTE.files)=wscript
"$(SciteDefaultHome)\tools\SciTEhelp.js"
"$(SciteDefaultHome)\doc\SciTEDoc.html" "$(CurrentSelection)"
// command.help.subsystem.$(SciTE.files)=2
// -----------------------------------------------------------------------
var Args = WScript.Arguments;
var objIE = new ActiveXObject('InternetExplorer.Application');
objIE.MenuBar = 0;
objIE.ToolBar = 0;
objIE.StatusBar = 0;
objIE.Navigate (Args(0));
objIE.Visible = 1;
if (Args(1)) {
var r=objIE.document.body.createTextRange();
for(var i=0;r.findText(Args(1));i++){
r.execCommand('BackColor','','yellow');
r.execCommand('CreateBookmark','','bmk'+i);
r.collapse(false);
}
if (i==0){
var WSHShell = WScript.CreateObject('WScript.Shell');
WSHShell.Popup('Text "' + Args(1) + '" not found!', 0, 'SciTE
Documentation', 64);
} else {
objIE.document.location.href=objIE.document.location.href+'#bmk0';
}
}
>-------------------------------------------------------------
Works only for Windows.
Select keyword and press F1... :)
http://scite.ruteam.ru - more lua, vbs, js scripts.
--
mozers
_______________________________________________
Scite-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scite-interest