[UDL] Labels highlight In Custom Batch Doesn't Work As Expected
-
@Ekopalypse
Just haven’t gotten around to using the new version yet… planning for someday because mine is portable and has files mixed up inside…Please see below debug info
Notepad++ v7.6.6 (32-bit) Build time : Apr 3 2019 - 23:49:50 Path : C:\K\OD\Stuff\Soft\Notepad++\notepad++.exe Admin mode : OFF Local Conf mode : ON OS : Windows 10 (64-bit) Plugins : ColorPicker.dll ComparePlugin.dll LanguageHelp.dll mimeTools.dll NppCCompletionPlugin.dll NppConverter.dll NppExport.dll NppFavorites.dll NppFTP.dll NppJavaScript.dll NppQCP.dll NppSaveAsAdmin.dll NppSnippets.dll NppTextFX.dll PyNPP.dll PythonScript.dll RunMe.dll SearchPlus.dll SpellChecker.dll XMLTools.dll _CustomizeToolbar.dll
Edit: oh you mean the python version… this is what came with the msi
-
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. -
@Ekopalypse :'(
editor1.indicSetStyle(0, 17) editor1.indicSetFlags(0, SC_INDICFLAG_VALUEFORE) editor2.indicSetStyle(0, 17) editor2.indicSetFlags(0, SC_INDICFLAG_VALUEFORE)
No change…
-
@Vin-dickator
is there a new error in the console? -
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'
-
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 -
@Ekopalypse I was about ask that :D
Please take your time,
21:55 now aswellYou have a nice dinner/good night :)
Thanks for your assistance so far
-
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
I found the more latest version on GitHub
Guess, they abandoned the version on sourceforge websiteand after installing the latest one, the code highlighting works perfectly!
Thanks a lot for the help!
-
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.4Version3 will be using Python3 and there is still some work
to be done to get it to the level 1.5.4 is. -
@Ekopalypse Yes, yes…
Understood, thanks for asking :DNot using the alpha now …
I used the same one as yours 1.5.3 -
Now we can rest and go to bed :-D
If there is anything about the script let us know here.Good night.