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 3.2k Views 2 Watching
    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.
    • Ahu LeeA Offline
      Ahu Lee
      last edited by Ahu Lee

      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.

      Claudia FrankC 1 Reply Last reply Reply Quote 1
      • Claudia FrankC Offline
        Claudia Frank @Ahu Lee
        last edited by

        @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
        • Ahu LeeA Offline
          Ahu Lee
          last edited by Ahu Lee

          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.

          Claudia FrankC 1 Reply Last reply Reply Quote 1
          • Claudia FrankC Offline
            Claudia Frank @Ahu Lee
            last edited by

            @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
            • Ahu LeeA Offline
              Ahu Lee
              last edited by Ahu Lee

              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?

              Claudia FrankC 1 Reply Last reply Reply Quote 0
              • Claudia FrankC Offline
                Claudia Frank @Ahu Lee
                last edited by

                @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
                • Ahu LeeA Offline
                  Ahu Lee
                  last edited by Ahu Lee

                  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!

                  Claudia FrankC 1 Reply Last reply Reply Quote 0
                  • Claudia FrankC Offline
                    Claudia Frank @Ahu Lee
                    last edited by

                    @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

                    Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                    Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                    With your input, this post could be even better 💗

                    Register Login
                    • First post
                      Last post
                    The Community of users of the Notepad++ text editor.
                    Powered by NodeBB | Contributors