That's too bad.
Another idea...
Work with the Scintilla Control and the Markers defined by PB....
You need to 'borrow' the functions from the IDE (github)
The implementation in the IDE is in the following files.
Code: Select all
; Common.pb
; #MARKER_Marker = 22 ; line markers
;
; ScintillaHighlighting.pb
; Procedure AddMarker()
; Procedure ClearMarkers()
; Procedure MarkerJump()
; Procedure.s GetMarkerString() ; get a list of all markers as a string
; Procedure ApplyMarkerString(Markers$) ; apply a string of marker numbers to the file
My simplified get Scintilla Handle :
Code: Select all
hwnd = FindWindow_(@"WindowClass_2", @"PureBasic 6.21 (x64)")
If hwnd : hwnd = FindWindowEx_(hwnd, #Null, @"PureSplitter", #Null) : EndIf
If hwnd : hwnd = FindWindowEx_(hwnd, #Null, @"PureSplitter", #Null) : EndIf
If hwnd : hwnd = FindWindowEx_(hwnd, #Null, @"PureContainer", #Null) : EndIf
If hwnd : hwnd = FindWindowEx_(hwnd, #Null, @"Scintilla", #Null) : EndIf
If hwnd
Debug "Found PureBasic Scintilla Control == " + hwnd
hwndScintilla = hwnd
EndIf