Community
    • Login

    More than one Commen Line type in UDLs?

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    3 Posts 2 Posters 1.1k Views 2 Watching
    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.
    • Sam MarroccoS Offline
      Sam Marrocco
      last edited by PeterJones

      I am creating a UDL (User-Defined Language) and would like to have more than one type of comment line. For example:

      // This is a comment line
      

      and

      # This is a comment Line
      

      is it possible to have more than one comment line type in a UDL?

      -–

      moderator added code markdown around text; please don’t forget to use the </> button to mark example text as “code” so that characters don’t get changed by the forum

      PeterJonesP 1 Reply Last reply Reply Quote 0
      • PeterJonesP Offline
        PeterJones @Sam Marrocco
        last edited by

        @Sam-Marrocco ,

        The fields in the User Defined Language (UDL) dialog are space-separated lists. So if you want both # and // to start a comment-line, set the Comment Line: Open field to # // or // # – then either token can be used to start a comment line

        1fb97e82-999f-49b1-b225-1ac5e1a60bff-image.png

        Sam MarroccoS 1 Reply Last reply Reply Quote 4
        • Sam MarroccoS Offline
          Sam Marrocco @PeterJones
          last edited by

          Thank you, Peter.
          Your suggestion does exactly what I needed. Thank you.

          1 Reply Last reply Reply Quote 2

          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