• Login
Community
  • Login

Color syntax for Ruby breaks when %= is encountered

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
10 Posts 3 Posters 477 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.
  • I
    ice7512
    last edited by May 18, 2020, 5:36 AM

    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?

    E 1 Reply Last reply May 18, 2020, 10:07 AM Reply Quote 0
    • E
      Ekopalypse @ice7512
      last edited by May 18, 2020, 10:07 AM

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

      I 1 Reply Last reply May 18, 2020, 10:49 AM Reply Quote 1
      • I
        ice7512 @Ekopalypse
        last edited by May 18, 2020, 10:49 AM

        @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

        E 1 Reply Last reply May 18, 2020, 11:55 AM Reply Quote 1
        • E
          Ekopalypse @ice7512
          last edited by May 18, 2020, 11:55 AM

          @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.

          I 1 Reply Last reply May 18, 2020, 12:19 PM Reply Quote 2
          • I
            ice7512 @Ekopalypse
            last edited by May 18, 2020, 12:19 PM

            @Ekopalypse Thanks

            E 1 Reply Last reply May 18, 2020, 6:54 PM Reply Quote 0
            • E
              Ekopalypse @ice7512
              last edited by May 18, 2020, 6:54 PM

              @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 :-)

              I 1 Reply Last reply May 19, 2020, 8:12 AM Reply Quote 3
              • I
                ice7512 @Ekopalypse
                last edited by May 19, 2020, 8:12 AM

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

                E 1 Reply Last reply May 19, 2020, 9:46 AM Reply Quote 0
                • E
                  Ekopalypse @ice7512
                  last edited by Ekopalypse May 19, 2020, 9:46 AM May 19, 2020, 9:46 AM

                  @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.

                  A I 2 Replies Last reply May 19, 2020, 11:55 AM Reply Quote 1
                  • A
                    Alan Kilborn @Ekopalypse
                    last edited by May 19, 2020, 11:55 AM

                    @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
                    • I
                      ice7512 @Ekopalypse
                      last edited by May 20, 2020, 3:16 PM

                      @Ekopalypse Thanks

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