Navigation

    Community

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

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

    Help wanted · · · – – – · · ·
    3
    5
    154
    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.
    • WinterSilence
      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?

      PeterJones 1 Reply Last reply Reply Quote 0
      • PeterJones
        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.

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

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

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

            @wintersilence

            It is hidden within the html lexer.

            WinterSilence 1 Reply Last reply Reply Quote 1
            • Referenced by  PeterJones PeterJones 
            • WinterSilence
              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
              Copyright © 2014 NodeBB Forums | Contributors