Dear All

I have following lines of code in my SciTEStartup.lua file :

function enclose()
    local txt = editor:GetSelText();
    editor:ReplaceSel('<?php='..txt..';?>')
end

AND

command.name.6.$(file.patterns.php)=<?php=$var;?>
command.6.$(file.patterns.php)=enclose
command.subsystem.6.$(file.patterns.php)=3
command.mode.6.$(file.patterns.php)=savebefore:no
# command.shortcut.6.*=Ctrl+Shift+B

in SciTEUser.properties file.

It is working as desired when called from Tools menu of SciTE. Is there a way I can do the same thing from command line because my tools menu has too many items in it and selecting one out of many is not very convenient? Also I do not want to use SciTE key short cuts.

Srish Agrawal


--
Internal Virus Database is out-of-date.
Checked by AVG Anti-Virus.
Version: 7.1.392 / Virus Database: 268.5.6/338 - Release Date: 5/12/2006


_______________________________________________
Scite-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scite-interest

Reply via email to