Community
    • Login

    Regex in functionList.xml

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    4 Posts 3 Posters 3.3k Views 2 Watching
    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.
    • NesarostN Offline
      Nesarost
      last edited by

      Hello, I’m trying to add TradeXpress (RTE) in functionList.xml but my function list is always empty.

      RTE function is like:

      begin
      …
      endbegin

      In functionlist.xml, I add:

      <association id= “rte_function” userDefinedLangName=“RTE” />
      <association id= “rte_function” ext=".rte />

      <parser id=“rte_function” displayName=“RTE”>
      <function
      mainExpr=“(?x)
      (^(begin)$)”
      displayMode=“$functionName”
      displayName=“RTE”>
      <functionName>
      <funcNameExpr expr=“(^(begin)$)” />
      </functionName>
      </function>
      </parser>

      EkopalypseE 1 Reply Last reply Reply Quote 0
      • EkopalypseE Offline
        Ekopalypse @Nesarost
        last edited by

        @Nesarost

        unfortunately, afaik, you need to restart npp, or start another instance, every time you make changes to the functionList.xml. Did you do that?

        In order to keep the formatting of your posted content use three tildes before and after the text like
        ~~~
        text
        ~~~
        and provide a sample of data with the information what you expect to see in function list, then it might be easier for others do digging around your issue.

        1 Reply Last reply Reply Quote 2
        • NesarostN Offline
          Nesarost
          last edited by

          Thanks for your reply.

          I was editing the wrong file. I have 2 functionList.xml, one in Program Files and one in Roaming.

          1 Reply Last reply Reply Quote 3
          • MAPJe71M Offline
            MAPJe71
            last edited by

            Some remarks:

            • use “proper” double quotes i.e. ASCII \x22 only;
            • rename funcNameExpr to nameExpr (funcNameExpr-node is only used when the function/functionName-node is part of a classRange-node).
            • remove displayMode="$functionName", it isn’t used anyway
            1 Reply Last reply Reply Quote 3

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • First post
              Last post
            The Community of users of the Notepad++ text editor.
            Powered by NodeBB | Contributors