Menu

Plugin Suggestion: Named Anchors

Tekzel
2007-09-17
2012-11-14
  • Tekzel

    Tekzel - 2007-09-17

    I use NPP to edit ASP files and have often thought it would be nice to be able to call up a list if "sections" in the file I am editing to go right there.  I have sections of the file commented with something like '*** Some Section, would be nice to be able to tell NPP that a section identifier starts with '*** and the rest is the name.  Then when I call up the list, it will show all lines that look like that and I can click on one to go right there.  This could be helpful for any language, or any type of file really.  I hope this is clearish.

     
    • Nobody/Anonymous

      At the moment only version 2.0 can do this. Create for your language a new group like "Section" and add your RegEx rules. In your case it is very easy.

      Function begin: \*\*\*\s*
      Function Name:  \w*

      All other fields stay empty.

      Best Regards
      Jens

       
    • Harry

      Harry - 2007-09-17

      I think you could do that with functionlist plugin. Im not very familiar with regular expressions, but functionslist will probably allow you to search for '***' and a name after that and list them

       
    • Tekzel

      Tekzel - 2007-09-18

      Thats cool!  I will have to look into the functionlist plugin further, I looked at it some but it didn't look like it would do what I wanted.  Anyone familiar with that plugin that can give me some hints?

       
MongoDB Logo MongoDB