Community
    • 登入

    Notepad++ core: Function list not working properly

    已排程 已置頂 已鎖定 已移動 Help wanted · · · – – – · · ·
    4 貼文 3 Posters 3.3k 瀏覽
    正在載入更多貼文
    • 從舊到新
    • 從新到舊
    • 最多點贊
    回覆
    • 在新貼文中回覆
    登入後回覆
    此主題已被刪除。只有擁有主題管理權限的使用者可以查看。
    • NppFrequentUserN
      NppFrequentUser
      最後由 編輯

      Notepad++ v6.9
      Build time : Feb 21 2016 - 21:27:55
      Path : E:\PortableApps\Notepad++Portable\App\Notepad++\notepad++.exe
      Admin mode : OFF
      Local Conf mode : ON
      OS : Windows 10
      Plugins : NppConverter.dll NppExport.dll PluginManager.dll mimeTools.dll HTMLTag_unicode.dll JSMinNPP.dll PythonScript.dll LightExplorer.dll

      When the functionlist comes across a function name that starta with “for” it lists it as name without those first three letters. Example: the function format_line is shown in the function list as ormat_line.

      1 條回覆 最後回覆 回覆 引用 0
      • Ion MarqvardsenI
        Ion Marqvardsen
        最後由 編輯

        This is a general problem and it depends on what kind of file you are editing.

        If you are editing C files, then you have to avoid functions starting with
        “if”, “while” or “for”

        The problem is in the functionList.xml.

        Any interrupt functions of the format…

        void foo(void) __interrupt(1)
        {
        }

        …are not included in the function list either.

        I have tried to solve it…

        1 條回覆 最後回覆 回覆 引用 0
        • Jim DaileyJ
          Jim Dailey
          最後由 編輯

          @NppFrequentUser
          The TagsView plugin has a superset of the functionality of the function list feature, but it doesn’t have any restrictions on the function names that I am aware of. You might want to give it a try.

          1 條回覆 最後回覆 回覆 引用 0
          • Ion MarqvardsenI
            Ion Marqvardsen
            最後由 編輯

            Thanks Jim, TagsView is cool. It does not have the problems with name restrictions.

            but it has some “features” in C, that is the only file type I have tested:

            If you have an interrupt function like
            void ISR_function_name(void) __interrupt(INTERRUPT_NUMBER)
            {
            }
            it is listed as “__interrupt”

            It gets confusing if you have more than one interrupt function.

            Also you have to hit the update button each time you have add or changed the name of a function.

            But overall a great improvement.

            Thanks,

            1 條回覆 最後回覆 回覆 引用 0
            • 第一個貼文
              最後的貼文
            The Community of users of the Notepad++ text editor.
            Powered by NodeBB | Contributors