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
Has thanked: 100 times
Been thanked: 179 times

Notepad++ Function List

Post by Pablo César » Sat Aug 17, 2013 4:02 pm

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 1626 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
Has thanked: 100 times
Been thanked: 179 times

Post by Pablo César » Sat Aug 17, 2013 5:12 pm

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 1621 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 1621 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: 5234
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Has thanked: 160 times
Been thanked: 154 times
Contact:

Post by Rathinagiri » Thu Sep 18, 2014 6:13 pm

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 1487 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
Has thanked: 1 time
Been thanked: 2 times

Post by Javier Tovar » Thu Sep 18, 2014 6:49 pm

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: 5234
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Has thanked: 160 times
Been thanked: 154 times
Contact:

Post by Rathinagiri » Thu Sep 18, 2014 6:56 pm

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
Has thanked: 1 time
Been thanked: 2 times

Post by Javier Tovar » Thu Sep 18, 2014 7:17 pm

Gracias Sr. Rathinagiri,

Voy a estudiar al respecto!!! :)

Saludos

User avatar
PeteWG
Posts: 123
Joined: Sun Mar 21, 2010 5:45 pm
Has thanked: 4 times
Been thanked: 34 times

Post by PeteWG » Thu Sep 18, 2014 7:41 pm

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: 5234
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Has thanked: 160 times
Been thanked: 154 times
Contact:

Post by Rathinagiri » Fri Sep 19, 2014 4:05 am

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: 3039
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Has thanked: 170 times
Been thanked: 92 times
Contact:

Post by mol » Fri Sep 19, 2014 8:23 am

I cant'get list of functions. What's going on? (I have newest version of NPP)

User avatar
Rathinagiri
Posts: 5234
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Has thanked: 160 times
Been thanked: 154 times
Contact:

Post by Rathinagiri » Fri Sep 19, 2014 10:58 am

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