Community
    • Login

    creating your own "language" ...

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    4 Posts 2 Posters 277 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.
    • SebastjanS
      Sebastjan
      last edited by

      i would like to implement my own language in N++ … it is similar to html (it has tags)
      like:

      <var>ruser.pravice = [<decode.pass>[$ruser.pravice][$ruser.password]</decode.pass>]</var>
      <access>pageClanekDelete [] [<redirectTo><!server_url>?err/401</redirectTo>]</access>
      <if>#usid <> [] then [
      	<sql>execute [delete from tblClanek where usid = '<#usid>']</sql>
      	<return>1</return>
      ]</if>
      

      i cannot get N++ to highlight my new “commands”… ie <if> <return> <var> …
      anyone got any ideas?

      i tried to “create your own language” but it only works with commands without <tags>

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

        @Sebastjan

        Using < and > as delimiter should do the job. Either to use it
        as mechanism to color the text inside or with nesting enabled to color
        the different keyword groups.

        1 Reply Last reply Reply Quote 1
        • SebastjanS
          Sebastjan
          last edited by

          thanks… tried it and it works half the way i want… but it is better then nothing.
          thank you.

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

            @Sebastjan

            without knowing what the second half should be it is hard to tell what can be done in addition.

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