Hello Scite-interest,
Russian user Moon_aka_Sun invented decision, that allows inserting separators
in Tools menu.
Add SciTE.h
> ---------------------------------------------
#define IDM_TOOLS_SEP 308
> ---------------------------------------------
Remove line 1062 in SciTEBuffers.cxx:
> ---------------------------------------------
if (commandName.length()) {
//G-: +++ add separator if command.name starts with '-'
int skip_1st_char = 0;
if( commandName == '-' )
{
SetMenuItem(menuTools, menuPos++, IDM_TOOLS_SEP, "");
skip_1st_char = 1;
}
SString sMenuItem = commandName.c_str() + skip_1st_char;
//G-: ---
prefix = "command.shortcut.";
> ---------------------------------------------
Than you can write so:
> ---------------------------------------------
command.name.1.*=-&Fill Rectangle
command.1.*=*fill_rectangle text:$(1) incr:$(2)
command.mode.1.*=subsystem:lua,savebefore:no
> ---------------------------------------------
Than "Fill Rectangle" command will be separated from of Go/F5.
Unfortunately this decision works not as well as i want it to and allows to add
only two separators :(
If you corrected this code I would be pleased with you.
--
mozers
<http://scite.ruteam.ru>
_______________________________________________
Scite-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scite-interest