• Login
Community
  • Login

How do I toggle block comment?

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
4 Posts 2 Posters 491 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.
  • N
    nutnutwin
    last edited by Mar 13, 2022, 7:32 AM

    Hi
    I see that there are
    Edit -> Comment/Uncomment ->

    • Toggle Single Line Comment
    • Single Line Comment
    • Single Line Uncomment
    • Block Comment
    • Block Uncomment
      But no “Toggle Block Comment”
      wonder if there workaround for this?
      (Seems available in VSCode, just an example

    Thank you so much.

    E 1 Reply Last reply Mar 13, 2022, 10:08 AM Reply Quote 0
    • E
      Ekopalypse @nutnutwin
      last edited by Ekopalypse Mar 13, 2022, 10:08 AM Mar 13, 2022, 10:08 AM

      @nutnutwin

      The only “workaround” I see at the moment is to use one of the
      script plugins and do the necessary calculations to implement it.
      But can I ask you a serious question:
      Where do you see an advantage in using block comments over line comments?

      N 2 Replies Last reply Mar 13, 2022, 10:31 AM Reply Quote 0
      • N
        nutnutwin @Ekopalypse
        last edited by nutnutwin Mar 13, 2022, 10:31 AM Mar 13, 2022, 10:31 AM

        This post is deleted!
        1 Reply Last reply Reply Quote 0
        • N
          nutnutwin @Ekopalypse
          last edited by Mar 13, 2022, 10:40 AM

          @ekopalypse

          Where do you see an advantage in using block comments over line comments?

          A very refreshing point indeed…
          Yes for many language with decent single line comment it is totally fine
          while for Markdown for example, only block comment is properly defined

          <!-- your comment -->

          the built-in markdown use “#” for single line comment, which is reserved for paragraphs in markdown

          Yes I can change to to like “//”, but is not compatible when I open the file in other Editors, say, VSCode.

          Thank you.

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