• Login
Community
  • Login

Function List option for different Keywords

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
7 Posts 3 Posters 3.8k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G
    Gopi Einstein
    last edited by Gopi Einstein Dec 14, 2016, 2:24 PM Dec 14, 2016, 2:23 PM

    In Notepad++ there is option “Function list” which show the list of function in our C program. Actually it is working with a concept of parsing “void … etc” for extracting a function but unfortunately in my code the function or sub function or API shall not start with “void” keyword instead it is starting with “FUNC” or “STATIC FUNC” keyword. Notepad function list option is not able to find this kind of function.

    I have searched in internet and found that XML code in functionlist.xml files of notepad installed is responsible for that functionality then i start to edit that regular expression but everything failed.

    Please provide the solution to fix the issue or let me know where to modify the code in functionlist.xml files.

    C 1 Reply Last reply Dec 14, 2016, 2:54 PM Reply Quote 0
    • C
      Claudia Frank @Gopi Einstein
      last edited by Dec 14, 2016, 2:54 PM

      @Gopi-Einstein

      with default function list configuration

      Cheers
      Claudia

      1 Reply Last reply Reply Quote 0
      • G
        Gopi Einstein
        last edited by Dec 20, 2016, 12:47 PM

        Sorry For the unclear information. please find the exact function i am using in Notepad++

        FUNC (void, public) Init (config, value)
        {
        /* code part */
        }

        FUNC (void, public) is an Macro.

        But this above mentioned function format is not recognized. Kindly provide your feedback on this.

        Advance thanks.

        C 1 Reply Last reply Dec 20, 2016, 5:12 PM Reply Quote 0
        • C
          Claudia Frank @Gopi Einstein
          last edited by Dec 20, 2016, 5:12 PM

          @Gopi-Einstein

          depending on your installation the file which needs to be edited is either the one under %APPDATA%\notepad
          or the one in the installation directory. If your ?->Debug Info tells you
          Local Conf mode : OFF then it is the one under %APPDATA%, if it is
          Local Conf mode : ON then it is the one under the installation directory.
          Open the respective file and goto the c_function element.
          mainExpr and nameExpr are the regexes you need to modify to adapt it to your needs.

          Cheers
          Claudia

          1 Reply Last reply Reply Quote 0
          • G
            Gopi Einstein
            last edited by Gopi Einstein Dec 23, 2016, 12:33 PM Dec 23, 2016, 12:33 PM

            I have found out the location of mainExpr and nameExpr but i am totally confused with this regular expression more over i don’t have any experience with it. I don’t know exactly what to modify.

            If possible, Please provide what exactly i have to change here so that i can parse those function format.

            Thanks in advance.

            C 1 Reply Last reply Dec 23, 2016, 1:00 PM Reply Quote 0
            • C
              Claudia Frank @Gopi Einstein
              last edited by Dec 23, 2016, 1:00 PM

              @Gopi-Einstein

              so what is the exact syntax a can have? (needed and optional parts?)

              Cheers
              Claudia

              1 Reply Last reply Reply Quote 0
              • G
                GopiEinstein
                last edited by Sep 4, 2017, 7:32 AM

                wwhat are you doing you don’t know about me

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post
                The Community of users of the Notepad++ text editor.
                Powered by NodeBB | Contributors