Navigation

    Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

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

    General Discussion
    2
    8
    1984
    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 Lee
      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 Frank 1 Reply Last reply Reply Quote 1
      • Claudia Frank
        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 Lee
          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 Frank 1 Reply Last reply Reply Quote 1
          • Claudia Frank
            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 Lee
              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 Frank 1 Reply Last reply Reply Quote 0
              • Claudia Frank
                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 Lee
                  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 Frank 1 Reply Last reply Reply Quote 0
                  • Claudia Frank
                    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
                    • First post
                      Last post
                    Copyright © 2014 NodeBB Forums | Contributors