Page 2 of 5
Notepad++ Function List
Posted: Sat Aug 17, 2013 4:02 pm
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 (149.18 KiB) Viewed 6175 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.
Notepad++ Function List
Posted: Sat Aug 17, 2013 5:12 pm
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 (38.32 KiB) Viewed 6170 times
Select "xBase" language and remove command "do" at "Folding in code 1 style", as showing picture below:
- Screen1.PNG (30 KiB) Viewed 6170 times
Then you can close with by th "x" and ready !!
Re: Notepad++ Function List
Posted: Thu Sep 18, 2014 6:13 pm
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 (143.86 KiB) Viewed 6036 times
Please see the screenshot.
Re: Notepad++ Function List
Posted: Thu Sep 18, 2014 6:49 pm
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
Re: Notepad++ Function List
Posted: Thu Sep 18, 2014 6:56 pm
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
Re: Notepad++ Function List
Posted: Thu Sep 18, 2014 7:17 pm
by Javier Tovar
Gracias Sr. Rathinagiri,
Voy a estudiar al respecto!!!
Saludos
Re: Notepad++ Function List
Posted: Thu Sep 18, 2014 7:41 pm
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!
---
Pete
Re: Notepad++ Function List
Posted: Fri Sep 19, 2014 4:05 am
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.
Re: Notepad++ Function List
Posted: Fri Sep 19, 2014 8:23 am
by mol
I cant'get list of functions. What's going on? (I have newest version of NPP)
Re: Notepad++ Function List
Posted: Fri Sep 19, 2014 10:58 am
by Rathinagiri
Can you give your functionlist.xml? Is your user-defined language name is different from 'Harbour' for .prg extension?