Notepad++ Function List

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++ Function List

Post by Pablo César »

Rathinagiri wrote:I had installed Notepad++ 6.4.3 in c:\hmg.3.1.5\notepad++.
It would be very much indicated to realize update in your Notepad++ installation. Because as it was mentioned in Notepad++ official site, corrections was made in from version 6.4 release (please, read this) and upto this date, the current version is: 6.4.5.
Sadly I can't see the function list even though I had enabled.
If after Notepad++ upgrade it still not working, you would check installation folder (please, read this message).
Also, as you can note down, 'do' in win'do'w is also taken as DO and a separate loop is created. Can't we avoid that?
Screen.PNG
Screen.PNG (149.18 KiB) Viewed 6169 times
This wrong color differantiation is probably from highlighted rules, (maybe becomes from here). I still do not alter anything about it, I'll see that later.
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++ Function List

Post by Pablo César »

Rathinagiri wrote:Also, as you can note down, 'do' in win'do'w is also taken as DO and a separate loop is created. Can't we avoid that?
I found the error !!!

Go to Settings/Define your language
Screen0.PNG
Screen0.PNG (38.32 KiB) Viewed 6164 times
Select "xBase" language and remove command "do" at "Folding in code 1 style", as showing picture below:
Screen1.PNG
Screen1.PNG (30 KiB) Viewed 6164 times
Then you can close with by th "x" and ready !! 8-)
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++ Function List

Post by Rathinagiri »

Hi,

I have changed functionlist.xml as given by Pablo to list all the functions even without parenthesis.

Code: Select all

			<parser id="prg_function" displayName="Harbour" commentExpr="">
				<function
				    mainExpr="^[\t ]*(!Func|Function|Proc|Procedure)[\t ]+[^\r\n]*$"
					displayMode="$functionName">
					<functionName>
						<nameExpr expr="(?(?=[\t ]*)[\t ]*[\t ]+[^\s]+|[^\r\n]*)"/>
					</functionName>
				</function>
			</parser>
This was the parser code.
funclist.jpg
funclist.jpg (143.86 KiB) Viewed 6030 times
Please see the screenshot.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
Javier Tovar
Posts: 1275
Joined: Tue Sep 03, 2013 4:22 am
Location: Tecámac, México

Re: Notepad++ Function List

Post by Javier Tovar »

Se ve muy bien Sr. Rathinagiri, Y como le puedo hacer yo para conseguir lo mismo? donde se pone el código?

Saludos
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++ Function List

Post by Rathinagiri »

It is already been explained in detail by Pablo. You have to include this code in functionlist.xml found in either notepad++ folder or appdata folder.

I had installed the recent version of NotePad++ which is 6.6.9
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
Javier Tovar
Posts: 1275
Joined: Tue Sep 03, 2013 4:22 am
Location: Tecámac, México

Re: Notepad++ Function List

Post by Javier Tovar »

Gracias Sr. Rathinagiri,

Voy a estudiar al respecto!!! :)

Saludos
PeteWG
Posts: 176
Joined: Sun Mar 21, 2010 5:45 pm

Re: Notepad++ Function List

Post by PeteWG »

Rathinagiri wrote:Hi,

I have changed functionlist.xml as given by Pablo to list all the functions even without parenthesis.

Code: Select all

			<parser id="prg_function" displayName="Harbour" commentExpr="">
				<function
				    mainExpr="^[\t ]*(!Func|Function|Proc|Procedure)[\t ]+[^\r\n]*$"
					displayMode="$functionName">
					<functionName>
						<nameExpr expr="(?(?=[\t ]*)[\t ]*[\t ]+[^\s]+|[^\r\n]*)"/>
					</functionName>
				</function>
			</parser>
At last!
For a long time I was struggling with this thing, with no avail..
Many thanks for your hint! you're great! 8-)

---
Pete
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++ Function List

Post by Rathinagiri »

Thanks a lot PeteWG.

I am not great, but the people behind the open source community are and their passion to share is. In that way, I too am a drop in the ocean.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
mol
Posts: 3718
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

Re: Notepad++ Function List

Post by mol »

I cant'get list of functions. What's going on? (I have newest version of NPP)
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++ Function List

Post by Rathinagiri »

Can you give your functionlist.xml? Is your user-defined language name is different from 'Harbour' for .prg extension?
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
Post Reply