Community
    • Login

    Comment line style for user defined language

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    36 Posts 11 Posters 29.9k 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.
    • Claudia FrankC
      Claudia Frank @Keith Kranker
      last edited by Claudia Frank

      @Keith-Kranker

      what about the following.

      Use force at beginning of line
      For comment line style use * as open
      For comment style use the normal /* for open and */ for close
      Now the trick
      Use a delimiter and assign the same color as for comment
      for open put in \\\ \\
      and for close ((EOL)) ((EOL))

      Looks like this does it. (note I used different colors for demonstration)

      Cheers
      Claudia

      1 Reply Last reply Reply Quote 0
      • Keith KrankerK
        Keith Kranker
        last edited by

        Fantastic! Thanks so much. It worked like a charm.

        1 Reply Last reply Reply Quote 0
        • YaronY
          Yaron
          last edited by

          Hello @Claudia-Frank,

          It’s been a long time.
          I hope you’re doing well.

          Allow me an off-topic question.
          The Compare Plugin buttons are all enabled in your screenshot.
          It looks like you didn’t have an active Compare at the time, is that correct?
          If correct, could you please list the STR this state (i.e. no active Compare and all buttons enabled).

          Is it https://github.com/pnedev/compare-plugin/issues/73#issuecomment-266256708?

          Thank you very much.

          Best regards.

          Claudia FrankC 3 Replies Last reply Reply Quote 0
          • Claudia FrankC
            Claudia Frank @Yaron
            last edited by

            Hello @Yaron,

            I’m fine thx - I hope you as well?

            It looks like you didn’t have an active Compare at the time, is that correct?

            Correct

            If correct, could you please list the STR this state (i.e. no active Compare and all buttons enabled).

            What do you mean by list STR this state?
            I checked the link and my recent history list isn’t empty - I assume it isn’t since
            starting npp for the very first time ;-)

            Please be aware that I’m using npp under wine - I don’t have any windows environment
            at the moment.

            Cheers
            Claudia

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

              @Yaron

              STR = steps to reproduce, correct?

              If so, just start npp.

              Cheers
              Claudia

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

                @Yaron

                Regardless if I have a history or not, whether I have opened files (old session) or only new 1
                buttons are always active. If I press compare button, then I do get the warning that
                only one file is active and action is being ignored and clear active button gets disabled.

                Cheers
                Claudia

                1 Reply Last reply Reply Quote 0
                • YaronY
                  Yaron
                  last edited by

                  Hello Claudia,

                  I’m fine too. :) Thank you.

                  And thanks for testing and replying. I appreciate it.

                  STR = steps to reproduce, correct?

                  Correct.

                  If so, just start npp.

                  Session restored and any files opened?
                  No files on starting NPP?
                  Are all the buttons enabled in both cases?

                  If you Compare and then Clear Active Compare, are some of the buttons disabled?

                  Do you use the Customize Toolbar plugin?

                  Thanks again.
                  BR

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

                    If I do compare files and then press clear active compare, the active compare button together with the navigation buttons do get greyed out. Restart npp -> all active.

                    1 Reply Last reply Reply Quote 0
                    • YaronY
                      Yaron
                      last edited by

                      Mid-air collision I suppose. :)

                      Thanks again.

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

                        @Yaron

                        yes, always active - regardless if many files are open or only one (the new one).

                        Notepad++ v7.3.2 (32-bit)
                        Build time : Feb 12 2017 - 23:15:39
                        Path : C:\programs\notepad++\notepad++.exe
                        Admin mode : ON
                        Local Conf mode : ON
                        OS : Windows 7 (64-bit)
                        Plugins : ComparePlugin.dll Explorer.dll mimeTools.dll NppConverter.dll NppExec.dll NppExport.dll PluginManager.dll PythonScript.dll Tidy2.dll XMLTools.dll

                        1 Reply Last reply Reply Quote 0
                        • YaronY
                          Yaron
                          last edited by

                          Hello again Claudia,

                          Thank you very much. It’s been helpful and I appreciate that.

                          Have a good night. :)
                          BR

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

                            @Yaron

                            no problem - any time again.

                            Btw. Just a note, the menu entries are greyed out.

                            Cheers and good night :-)
                            Claudia

                            1 Reply Last reply Reply Quote 1
                            • YaronY
                              Yaron
                              last edited by

                              That’s important too.
                              Thanks again.

                              BR

                              1 Reply Last reply Reply Quote 0
                              • YaronY
                                Yaron
                                last edited by Yaron

                                Hello Claudia,

                                Just to close the issue here.
                                Both @pnedev and myself use the Customize Toolbar plugin and with it the buttons state is handled properly.
                                I’ll refer Pavel to the issue.

                                Again, thank you and good night.

                                1 Reply Last reply Reply Quote 0
                                • DaveyDD
                                  DaveyD
                                  last edited by

                                  Hi Yaron, Pavel, Claudia
                                  First of all, big thanks to @pnedev for further developing this great plugin! I use it regularly. And of course, thanks to @Yaron for pushing the development and QA (and anything else I dont know about :) )
                                  And… thanks to @Claudia-Frank for all his great work and help on this forum!

                                  For what it’s worth, I’ve tested the plugin in regard to the above conversation, and I can verify that I get the same behaviour as @Claudia-Frank.

                                  On start, all icons are enabled. When clearing a recent compare, the “Clear active compare” icon gets disabled, but the rest remain enabled.

                                  Notepad++ v6.9.1
                                  Build time : Mar 28 2016 - 19:48:40
                                  Path : C:\Programs\Notepad++\notepad++.exe
                                  Admin mode : OFF
                                  Local Conf mode : ON
                                  OS : Windows 10

                                  ATB,
                                  David

                                  1 Reply Last reply Reply Quote 0
                                  • pnedevP
                                    pnedev
                                    last edited by

                                    Hello guys,

                                    Thank you all for testing, commenting and reporting.
                                    This issue looks to me like some inconsistency during toolbar ready N++ start-up phase.
                                    I’ll investigate further and write back but in another thread as this off-topic is becoming the main discussion here.

                                    BR

                                    1 Reply Last reply Reply Quote 0
                                    • Roch1995R
                                      Roch1995
                                      last edited by

                                      Hello, I am not getting any way to run np++ on my mac, is there any way out to run it on My mac. Plz help, thx in advance,
                                      Regards,
                                      Roch (Crictime)

                                      1 Reply Last reply Reply Quote 0
                                      • YaronY
                                        Yaron
                                        last edited by

                                        Hello,

                                        @pnedev,

                                        Thank you for further investing it. I appreciate that.

                                        @DaveyD,

                                        Thank you for testing and confirming. Appreciated.
                                        Dear @Claudia-Frank is a lady. I made this mistake too. :)

                                        BR

                                        1 Reply Last reply Reply Quote 2
                                        • YaronY
                                          Yaron
                                          last edited by

                                          Thanks Claudia. :)

                                          Claudia FrankC 1 Reply Last reply Reply Quote 1
                                          • Claudia FrankC
                                            Claudia Frank @Yaron
                                            last edited by

                                            @Yaron

                                            your welcome but I have to thank you don’t I ;-)

                                            Cheers
                                            Claudia

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