Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    functionList not working with User Defined Language (MQL4)

    Help wanted · · · – – – · · ·
    2
    3
    186
    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 Manh
      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
      • guy038
        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 Manh
          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
          • First post
            Last post
          Copyright © 2014 NodeBB Forums | Contributors