Notepad++ Auto-Completion

Utilities like DBU, Make, IDE written in HMG/ used to create HMG based applications

Moderator: Rathinagiri

User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

Notepad++ Auto-Completion

Post by Pablo César »

Thank you guys, I will keeping on working with syntax... :D
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

Notepad++ Auto-Completion

Post by Pablo César »

I believe I finished the functions files of the Harbour and I have a good news: I was able to do two new styles (not counting whith one I had already postedn new different ones). For this reason I decided to post both ways and I will describe each of It:

1. Style with the parameters included in the return, allowing leverage variables and know the syntax.
Image
xBase functions with parameters including.rar
(9.51 KiB) Downloaded 465 times
2. Style eprofissional much more elaborate, and it returns the function name in "CamelCase", only the syntax displays on the screen and follow the positioning of each parameter to measure which is added, also brief description of each function.

a. Please note that as you type the function name (in this case the first 3 characters), it will open a ComboBox with pre-existing functions, showing only the name (without parameters)
Screen.PNG
Screen.PNG (21.17 KiB) Viewed 5487 times
b. And when typing the parenthesis [ the character "(" ] will then show the syntax and parameters with brief description.
Screen1.PNG
Screen1.PNG (32.37 KiB) Viewed 5487 times
c. There functions over which a syntax is displayed differently. See pictures below.
Screen3.PNG
Screen3.PNG (21.71 KiB) Viewed 5487 times
To see both syntax, click the arrow button (circled in red color)
Screen4.PNG
Screen4.PNG (21.56 KiB) Viewed 5487 times
xBase functions displaying syntax.rar
(22.48 KiB) Downloaded 485 times
The auto-completion (file "xBase functions displaying syntax.rar") is only for "functions" so it was not possible to add Harbour commands. Because Notepad++ can enable the syntax thru user typing a " ( " at start and a " ) " at end which features a function with parenthesis.

Installation Instructions:
                                    Choose one of the two rar files attached and unpack it to where NOtepad++ is installed. By default is at %APPDATA%\notepad++\plugins\APIs folder. Where is %APPDATA% please considere as "Program Files" (in English) where Notepad++ appoint to be installed at first installation by default but most of us we have at sub-folder where HMG is installed. Example: C:\hmg.3.1.5\Notepad++\plugins.
If there are syntax errors or any errors you notice, please indicate the type and function of the rar file in this topic, so it can be corrected and improved by everyone.
I'm sure you will like it, because it will be of great assistance in the preparation of your source code. :D
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
User avatar
Rathinagiri
Posts: 5471
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: Notepad++ Auto-Completion

Post by Rathinagiri »

That looks so nice Pablo. I will check. it.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

Notepad++ Auto-Completion

Post by Pablo César »

If you failed to do, let me know.

In Win7 there probably you will use in following path:

<user>\AppData\Roaming\Notepad++

Well I know is all these tests have been done under Notepad++ version 6.4.5, probably lower version is with some bugs as in Notepad forum have been reported.

Remarks: At dot prompt type:

echo %APPDATA%

just to know where as sub-folder Notepad++ is.
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
User avatar
AidTIC
Posts: 117
Joined: Mon Apr 22, 2013 8:29 am
DBs Used: DBF
Contact:

Re: Notepad++ Auto-Completion

Post by AidTIC »

Muchas gracias, Gran aporte.

Thank you very much, Great contribution.
Skydone Solutions
www.skydone.com
User avatar
Steed
Posts: 427
Joined: Sat Dec 12, 2009 3:40 pm

Re: Notepad++ Auto-Completion

Post by Steed »

Thanks a lot
User avatar
Steed
Posts: 427
Joined: Sat Dec 12, 2009 3:40 pm

Re: Notepad++ Auto-Completion

Post by Steed »

after some trys

I discover that the AutoCompletatión Funcion is Case Sensitive, so for example if you tupe "sub": nothing appers, but, if you type SubS the appers the information
Post Reply