Community
    • Login

    More than one Commen Line type in UDLs?

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    3 Posts 2 Posters 331 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.
    • Sam MarroccoS
      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
        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
          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
          • First post
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors