• Login
Community
  • Login

More than one Commen Line type in UDLs?

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
3 Posts 2 Posters 355 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.
  • S
    Sam Marrocco
    last edited by PeterJones Aug 31, 2023, 5:46 PM Aug 31, 2023, 3:24 PM

    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

    P 1 Reply Last reply Aug 31, 2023, 5:49 PM Reply Quote 0
    • P
      PeterJones @Sam Marrocco
      last edited by Aug 31, 2023, 5:49 PM

      @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

      S 1 Reply Last reply Sep 14, 2023, 3:57 PM Reply Quote 4
      • S
        Sam Marrocco @PeterJones
        last edited by Sep 14, 2023, 3:57 PM

        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