Community
    • Login

    creating your own "language" ...

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    4 Posts 2 Posters 527 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 Offline
      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 Offline
        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 Offline
          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 Offline
            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

            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