Community
    • Login

    Comment Line and Comment Block starting with same character

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    3 Posts 2 Posters 1.8k 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.
    • Tristana LutareT
      Tristana Lutare
      last edited by

      Hey all. Appreciate any help.

      I’m defining a language for highlighting, etc. Ran into a problem with Comment Lines.

      A comment line begins with ;

      A comment block begins with ;/ and ends with /;

      How do I use both? If I enter it that way, Notepad++ ignores the comment block. If I leave the comment line blank, then the comment block works perfectly.

      Is there any solution? I’ve tried including a space after the ; but apparently I don’t know how to escape a space character properly?

      Thanks!

      Claudia FrankC 1 Reply Last reply Reply Quote 0
      • Claudia FrankC
        Claudia Frank @Tristana Lutare
        last edited by

        @Tristana-Lutare

        Instead of using comment, use delimiter but make sure the block is defined before the
        line comment

        Tristana LutareT 1 Reply Last reply Reply Quote 1
        • Tristana LutareT
          Tristana Lutare @Claudia Frank
          last edited by

          @Claudia-Frank

          Works perfectly! Thanks so much!

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