Community
    • Login

    Color syntax for Ruby breaks when %= is encountered

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    10 Posts 3 Posters 476 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.
    • ice7512I
      ice7512
      last edited by

      Hey,

      For some reason when Notepad++ sees %=, it can’t figureout how to highlight stuff properly (as seen below

      508edb99-3a18-44c3-bbe9-445066fab427-image.png

      How do I fix this?

      EkopalypseE 1 Reply Last reply Reply Quote 0
      • EkopalypseE
        Ekopalypse @ice7512
        last edited by

        @ice7512
        Can you post the debug-info from the ? menu, the last menu item?
        Which language do you use?

        ice7512I 1 Reply Last reply Reply Quote 1
        • ice7512I
          ice7512 @Ekopalypse
          last edited by

          @Ekopalypse
          I am using Ruby.

          Here is the debug info:
          Notepad++ v7.8.6 (64-bit)
          Build time : Apr 21 2020 - 15:23:03
          Path : C:\Program Files\Notepad++\notepad++.exe
          Admin mode : OFF
          Local Conf mode : OFF
          OS Name : Windows 10 Pro (64-bit)
          OS Version : 1909
          OS Build : 18363.836
          Plugins : mimeTools.dll NppConverter.dll NppExport.dll

          EkopalypseE 1 Reply Last reply Reply Quote 1
          • EkopalypseE
            Ekopalypse @ice7512
            last edited by

            @ice7512

            quick info before I have to go back to work.
            Can confirm the behavior with my installation as well.
            Will check later if there is something which can be done to solve it unless someone else already jumped in.

            ice7512I 1 Reply Last reply Reply Quote 2
            • ice7512I
              ice7512 @Ekopalypse
              last edited by

              @Ekopalypse Thanks

              EkopalypseE 1 Reply Last reply Reply Quote 0
              • EkopalypseE
                Ekopalypse @ice7512
                last edited by

                @ice7512

                Seems to be a scintilla issue because the demo editor (SciTE)
                is doing the same thing.

                f935ad50-00d1-43a0-81e2-35f655c1e1de-image.png

                And after searching scintillas bug tracker I found this.
                Not good news I’m afraid but please don’t shoot the messenger :-)

                ice7512I 1 Reply Last reply Reply Quote 3
                • ice7512I
                  ice7512 @Ekopalypse
                  last edited by

                  @Ekopalypse Is there anything I can locally do on my machine to prevent this from happening?

                  EkopalypseE 1 Reply Last reply Reply Quote 0
                  • EkopalypseE
                    Ekopalypse @ice7512
                    last edited by Ekopalypse

                    @ice7512

                    What you might try is to use something like this,
                    which means that you need to install the PythonScript plugin.
                    The limitation of this technique is that you can only define foreground colors,
                    and if you have really large source code files with lines > 10_000 and you fold a lot of code,
                    it will slow down your typing experience.

                    I use this every day with Python code, but my files usually don’t exceed 1_000 lines of code.

                    Other then that, you have to build npp and scintilla yourself and make the fixes in Ruby lexer.

                    Alan KilbornA ice7512I 2 Replies Last reply Reply Quote 1
                    • Alan KilbornA
                      Alan Kilborn @Ekopalypse
                      last edited by

                      @ice7512

                      Is there anything I can locally do on my machine to prevent this from happening?

                      As a longer term solution you can try to get the Scintilla people to have another look at it.

                      1 Reply Last reply Reply Quote 1
                      • ice7512I
                        ice7512 @Ekopalypse
                        last edited by

                        @Ekopalypse Thanks

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