Community
    • Login

    [UDL] Labels highlight In Custom Batch Doesn't Work As Expected

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    31 Posts 4 Posters 5.0k Views 1 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.
    • EkopalypseE Offline
      Ekopalypse @Vin dickator
      last edited by Ekopalypse

      @Vin-dickator

      let’s see if we can make it work.
      There are two lines here (saying two shoing four :-D )

                  editor1.indicSetStyle(0, INDICATORSTYLE.TEXTFORE)
                  editor1.indicSetFlags(0, SC_INDICFLAG_VALUEFORE)
                  editor2.indicSetStyle(0, INDICATORSTYLE.TEXTFORE)
                  editor2.indicSetFlags(0, SC_INDICFLAG_VALUEFORE)
      

      replace INDICATORSTYLE.TEXTFORE by the value 17.
      Hopefully this is the only missing declaration.

      Vin dickatorV 1 Reply Last reply Reply Quote 2
      • Vin dickatorV Offline
        Vin dickator @Ekopalypse
        last edited by

        @Ekopalypse :'(

                    editor1.indicSetStyle(0, 17)
                    editor1.indicSetFlags(0, SC_INDICFLAG_VALUEFORE)
                    editor2.indicSetStyle(0, 17)
                    editor2.indicSetFlags(0, SC_INDICFLAG_VALUEFORE)
        

        No change…

        EkopalypseE 1 Reply Last reply Reply Quote 0
        • EkopalypseE Offline
          Ekopalypse @Vin dickator
          last edited by

          @Vin-dickator
          is there a new error in the console?

          Vin dickatorV 1 Reply Last reply Reply Quote 1
          • Vin dickatorV Offline
            Vin dickator @Ekopalypse
            last edited by

            @Ekopalypse

            So, this time it says

            Python 2.7.6-notepad++ r2 (default, Apr 21 2014, 19:26:54) [MSC v.1600 32 bit (Intel)]
            Initialisation took 32ms
            Ready.
            Traceback (most recent call last):
              File "C:\K\OD\Stuff\Soft\Notepad++\plugins\PythonScript\scripts\EnhanceUDLLexer.py", line 260, in <module>
                EnhanceUDLLexer().main()
              File "C:\K\OD\Stuff\Soft\Notepad++\plugins\PythonScript\scripts\EnhanceUDLLexer.py", line 72, in __call__
                cls._instance = super(SingletonEnhanceUDLLexer, cls).__call__(*args, **kwargs)
              File "C:\K\OD\Stuff\Soft\Notepad++\plugins\PythonScript\scripts\EnhanceUDLLexer.py", line 100, in __init__
                self.configure()
              File "C:\K\OD\Stuff\Soft\Notepad++\plugins\PythonScript\scripts\EnhanceUDLLexer.py", line 180, in configure
                editor1.indicSetFlags(0, SC_INDICFLAG_VALUEFORE)
            AttributeError: 'Editor' object has no attribute 'indicSetFlags'
            
            
            1 Reply Last reply Reply Quote 0
            • EkopalypseE Offline
              Ekopalypse
              last edited by

              That’s what I was afraid of.
              Let me download 7.6.6 and PS 1.0.8.0 and see what needs to be changed. I don’t think I can finish this today but I promise
              to report back tomorrow. Here we already have 10.pm

              Vin dickatorV 2 Replies Last reply Reply Quote 2
              • Vin dickatorV Offline
                Vin dickator @Ekopalypse
                last edited by

                @Ekopalypse I was about ask that :D

                Please take your time,
                21:55 now aswell

                You have a nice dinner/good night :)

                Thanks for your assistance so far

                1 Reply Last reply Reply Quote 1
                • Vin dickatorV Offline
                  Vin dickator @Ekopalypse
                  last edited by

                  Let me download 7.6.6 and PS 1.0.8.0

                  This, got me thinking… I thought I was already using the latest version of PythonScript based on this URL…

                  But was I wrong :o
                  Pikachu.png

                  I found the more latest version on GitHub
                  Guess, they abandoned the version on sourceforge website

                  and after installing the latest one, the code highlighting works perfectly!

                  Thanks a lot for the help!

                  EkopalypseE 1 Reply Last reply Reply Quote 2
                  • EkopalypseE Offline
                    Ekopalypse @Vin dickator
                    last edited by Ekopalypse

                    @Vin-dickator

                    I hope you haven’t installed version 3… this is an alpha release.
                    The latest stable is https://github.com/bruderstein/PythonScript/releases/tag/v1.5.4

                    Version3 will be using Python3 and there is still some work
                    to be done to get it to the level 1.5.4 is.

                    Vin dickatorV 1 Reply Last reply Reply Quote 2
                    • Vin dickatorV Offline
                      Vin dickator @Ekopalypse
                      last edited by

                      @Ekopalypse Yes, yes…
                      Understood, thanks for asking :D

                      Not using the alpha now …
                      I used the same one as yours 1.5.3

                      1 Reply Last reply Reply Quote 2
                      • EkopalypseE Offline
                        Ekopalypse
                        last edited by

                        Now we can rest and go to bed :-D
                        If there is anything about the script let us know here.

                        Good night.

                        1 Reply Last reply Reply Quote 1

                        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