• Login
Community
  • Login

Toggle Single Line Comment vs Single Line Comment? Why do we have both?

Scheduled Pinned Locked Moved General Discussion
8 Posts 2 Posters 2.6k 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.
  • A
    Ahu Lee
    last edited by Ahu Lee Feb 16, 2018, 10:08 PM Feb 16, 2018, 10:07 PM

    Am I missing something or both Toggle Single Line Comment (Ctrl+Q) and Single Line Comment (Ctrk+K) do the exact same thing with only difference that the latter can uncomment while the former cannot? If so, then what is the point of having Ctrl+Q? And why is it called toggle comment when in fact it only works one way?

    Thank you.

    C 1 Reply Last reply Feb 16, 2018, 11:02 PM Reply Quote 1
    • C
      Claudia Frank @Ahu Lee
      last edited by Feb 16, 2018, 11:02 PM

      @Ahu-Lee

      Seems to work for me - which npp version, operating system and language do you use?

      Cheers
      Claudia

      1 Reply Last reply Reply Quote 0
      • A
        Ahu Lee
        last edited by Ahu Lee Feb 16, 2018, 11:24 PM Feb 16, 2018, 11:23 PM

        7.5.4
        Windows 7 SP1 x86

        Claudia Frank,

        so Ctrl+Q actually toggles it on and off? Rally!? Well, now at least the name makes sense. It has never been working for me though. Hmm… That is so weird.

        C 1 Reply Last reply Feb 16, 2018, 11:24 PM Reply Quote 1
        • C
          Claudia Frank @Ahu Lee
          last edited by Feb 16, 2018, 11:24 PM

          @Ahu-Lee

          I tried it on Linux under Wine with python, c and java script.
          Which language do you use?

          Cheers
          Claudia

          1 Reply Last reply Reply Quote 0
          • A
            Ahu Lee
            last edited by Ahu Lee Feb 16, 2018, 11:28 PM Feb 16, 2018, 11:28 PM

            I tried it on html\css. I’ve just tied JS and C-languages and it works fine on them. But why is this difference?

            C 1 Reply Last reply Feb 16, 2018, 11:32 PM Reply Quote 0
            • C
              Claudia Frank @Ahu Lee
              last edited by Feb 16, 2018, 11:32 PM

              @Ahu-Lee

              html has its own place here because it is not only one lexer but multiple.
              So I assume that this is were the issue comes from.

              Cheers
              Claudia

              1 Reply Last reply Reply Quote 0
              • A
                Ahu Lee
                last edited by Ahu Lee Feb 16, 2018, 11:40 PM Feb 16, 2018, 11:39 PM

                Yes, that might be the logic of it. But this behavior still doesn’t make much sense to me. Besides, all the other popular editors toggle html/css comments the same way they do in the programming languages. It’s clearly inconsistent on npp’s part, imho.

                Thank you very much!

                C 1 Reply Last reply Feb 17, 2018, 11:59 AM Reply Quote 0
                • C
                  Claudia Frank @Ahu Lee
                  last edited by Feb 17, 2018, 11:59 AM

                  @Ahu-Lee

                  to be honest, I don’t do much html and because of that I never checked what the issue here
                  is, it might be npp or it might scintilla, but yes, it is inconsistent in that case.

                  Cheers
                  Claudia

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