FunctionList in 7.9.1
-
tanxs for your reply.
but how to have this panel? (to run one function)
or how to run single function? -
@cisco779k said in FunctionList in 7.9.1:
i have see new functionList folder into 7.9.1 version.
First off, this panel is nothing new to v7.9.1. This version just split the old
functionList.xml
config file into many files in thefunctionList
folder. The Function List functionality has existed for years in Notepad++ (as long as I can remember)but how to have this panel?
Enable it using View > Function List, or the toolbar icon
(to run one function)
or how to run single function?It doesn’t run the function. It navigates the Notepad++ editor window to the first line of that function, so you can edit the source code for the function. To get it to navigate to the first line of that function, double-click on the name of the function in the Function List panel, as Alan already told you.
-
failed to customize markdown & Clojure function list in npp 7.9.1, but success in npp 7.9.
-
tanxs Peter for your explanation.
but my function list window is empty… how to load function ? -
@cisco779k said in FunctionList in 7.9.1:
but my function list window is empty
I think you’re going to have to provide some actual information in order for anyone to help you.
Examples:
-
what Language are you using where you want to see functions in the Function List window?
-
provide a snippet of your code which contains a function definition in the Language, that you are not seeing in the Function List
-
screenshot of what you are seeing when you look at Function List window
Really, you haven’t provided much to go on. See HERE.
-
-
-
Yes, unless you go through the process that @Alan-Kilborn showed in the first post in this topic, Normal Text does not have functions. Notepad++ has no way of knowing how you define a function in Normal Text unless you tell it. Normal Text is not the best way to figure out if the Function List panel is working for you.
Further, the document you showed is empty. How do you expect an empty document to define any functions, whatever language it’s supposed to be?
If you pick a pre-supported programming language, and open a file of that type (so the Language menu shows it properly selected and the status bar agrees), then the function list will show the defined functions. For example, if I open
PerlForFunctionListDebug.pl
#!perl use strict; use warnings; sub with_paren() {} sub no_paren_brace {} sub MyPackage::WithParen() {} sub withProto :prototype(\@@) {} sub withAttrib :Ugly : Duckling : Here {} package MyName; sub InPackage() {} __DATA__ sub fake_data_function() {} __END__ sub fake_end_function() {}
… then I see:
-
Why don’t you download
Notepad_plus.cpp
from HERE by right-clicking its contents and doing a SaveAs in your browser, and then open this file in Notepad++?Then you should see the following, which MIGHT help you understand this feature by looking at the following:
-
BTW, wow, did I ever select a “violent-sounding” function to use as my example one! :-(
-
@PeterJones
i have copy and paste your example on np but…
@ Alan
Notepad_plus.cpp work. tnxs.
-
Hi @cisco779k
As @PeterJones file example is not saved, you need to manually assing the correct language to the source file, Perl in this case. Once you do that the function list panel will do its job.
But as @Alan-Kilborn file example was saved with an specific extension, Notepad++ automatically assigned the correct language and populate the function list panel.
Hope this helps.
-
ok tanxs for explaination! cheers
-
This post is deleted! -