Community
    • Login

    How create UDL by defined/default langunge(PHP)?

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    5 Posts 3 Posters 544 Views
    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.
    • WinterSilenceW
      WinterSilence
      last edited by

      I’m want extend PHP style to add folding for arrays [...]/array(...) as in JS. How/where get current PHP definition to create UDL?

      PeterJonesP 1 Reply Last reply Reply Quote 0
      • PeterJonesP
        PeterJones @WinterSilence
        last edited by

        @wintersilence ,

        Sorry to bear bad news rather than a gift today, but the UDL system cannot start from one of the built-in lexers – the two systems are separate.

        You would have to start from scratch to do it in the UDL.

        The other option is to grab the source code of the original PHP parser, then tweak it to become a lexer plugin (see the npp-user-manual.org plugins page), and compile your own plugin to do exactly what you want.

        WinterSilenceW 1 Reply Last reply Reply Quote 2
        • WinterSilenceW
          WinterSilence @PeterJones
          last edited by

          @peterjones can you help me? I’m can’t find php lexer in git repo.

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

            @wintersilence

            It is hidden within the html lexer.

            WinterSilenceW 1 Reply Last reply Reply Quote 1
            • PeterJonesP PeterJones referenced this topic on
            • WinterSilenceW
              WinterSilence @Ekopalypse
              last edited by

              @ekopalypse hm… as I see, PHP and JS have common code to folding blocks, but array folding doesn’t work in PHP files.

              1 Reply Last reply Reply Quote 0
              • First post
                Last post
              The Community of users of the Notepad++ text editor.
              Powered by NodeBB | Contributors