The MASM Forum

Projects => MasmBasic & the RichMasm IDE => Topic started by: jj2007 on May 19, 2021, 09:10:16 AM

Title: Scintilla search
Post by: jj2007 on May 19, 2021, 09:10:16 AM
Although I don't particularly like the scintilla control, I felt tempted to explore it a little bit. Just in case you have an editor that uses this control, here is a proggie that might be useful. Start the attached exe, then switch to your editor: select a word, e.g. a variable, and press the right Ctrl key and F3 simultaneously. Enjoy :cool:

It does more or less what RichMasm's "found matches" listbox does:

(https://www.jj2007.eu/pics/RmGuide.jpg)

Here is a screenshot showing the WinFBE editor and Scintilla search in action:

(https://www.jj2007.eu/pics/WinFBE_ScintillaSearch.jpg)
Title: Re: Scintilla search
Post by: LiaoMi on May 20, 2021, 12:15:51 AM
Hi jj2007,

works great in Notepad++, this editor has many convenient functions for programming in assembly language. I made a config to autocomplete assembly instructions, all instructions were cut from the official Intel manual. To have this function you need to install the plugin - https://github.com/vinsworldcom/nppQuickText/releases, add the config QuickText that I attached in npp.7.9.5.portable.x64\plugins\Config, add config asm.xml for autocomplete in npp.7.9.5.portable.x64\autoCompletion. In the settings of the QuickText plugin, you need to activate the checkbox for autocomplete, if assembly language is selected, then everything should work.

I will add all existing api with parameters, all reserved words for the macro assembler and extend config to highlight code.

[3]
#LANGUAGE_NAME=C++
case=case $: $\n$
class=class $ {\nprivate:\n $\nprotected:\n $\npublic:\n $\n};\n$
def=#define $\n$
default=default $: $\n$
dowhile=do\n{\n $\n}\nwhile ($);\n$
dowhiles=do\n $\nwhile ($);\n$
else=else\n{\n $\n}\n$
elseif=else if ($)\n{\n $\n}\n$
elseifs=else if ($)\n $\n$
elses=else\n $\n$
for=for ($;$;$)\n{\n $\n}\n$
fors=for ($;$;$)\n $\n$
func=$ $($)\n{\n $\n return $;\n}\n$
hclass=#ifndef $\n#define $\n\nclass $ {\nprivate:\n $\nprotected:\n $\npublic:\n $\n};\n\n#endif\n$
if=if ($)\n{\n $\n}\n$
ifelse=if ($)\n{\n $\n}\nelse\n{\n $\n}\n$
ifelses=if ($)\n{\n $\n}\nelse\n $\n$
ifs=if ($)\n $\n$
ifselse=if ($)\n $\nelse\n{\n $\n}\n$
ifselses=if ($)\n $\nelse\n $\n$
inc=#include <$>\n$
incl=#include "$"\n$
main=int main(int argc, char* argv[])\n{\n $\n}\n
switch=switch ($)\n{\n $\n}\n$
while=while ($)\n{\n $\n}\n$
whiles=while ($)\n $\n$