Community
    • Login

    functionList not working with User Defined Language (MQL4)

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    3 Posts 2 Posters 1.1k Views 1 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.
    • JC ManhJ Offline
      JC Manh
      last edited by JC Manh

      Hello all!
      I defined a new language MQL4 inside Notepad++: MQL4
      I’ve create these files MQL4 - defined and copy it into Notepad++ folder in AppData and ProgramFiles.
      autoComplete and Highlights language is working well.
      But functionList is not working.
      functionList for MQL4: I use cpp.xml template file and edit something.

      I use Notepad++7.9.5 (64bit) - Windows 10 Pro

      Please helpme!
      Thank you!

      Sorry: English is not my native language.

      mql4 sample code

      1 Reply Last reply Reply Quote 0
      • guy038G Offline
        guy038
        last edited by guy038

        Hello, @jc-manh and All,

        Easy ! You just forgot to associate your defined language MQL4 to its function-list definitions, stored in mql4.xml. So :

        • Open the overrideMap.xml file, in the functionList folder, and, in the section below, insert the new line :
          <association id= "MQL4.xml" userDefinedLangName="MQL4"/>
        		<associationMap>
        			....
        			....
        			<!-- ==================== User Defined Languages ============================ -->
        			....
        			....
        			....
        			<association id= "MQL4.xml"	userDefinedLangName="MQL4"/>
        			<!-- ======================================================================== -->
        			....
        			....
        		</associationMap>
        
        • Save the modifications done in overrideMap.xml

        • Close and restart N++

        • Open your SampleCodeMQL4.mq4 file

        • Run the menu option View > Function List

        Voilà ;-))

        Best Regards,

        guy038

        1 Reply Last reply Reply Quote 2
        • JC ManhJ Offline
          JC Manh
          last edited by

          Hi @guy038!
          Great!
          Thank you so much!
          It’s worked!
          Love Notepad++ so much!

          1 Reply Last reply Reply Quote 1

          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