So I added this three lines to a small program (IDE-Tool)
BTW: I skipped the supporting lines in my counting.
Code: Select all
;| Trigger:
;| · Sourcecode loaded
;| · New Sourcecode created
;|
;| Suggested Options:
;| · Wait until tool quits
;| · Run Hidden
;| · Hide Tool from the Main menu
Define hScintilla = Val(GetEnvironmentVariable("PB_TOOL_Scintilla"))
If Not hScintilla ; if not running by IDE
MessageRequester("Fatal Error", "Failed to retrieve PB_TOOL_Scintilla", #PB_MessageRequester_Error)
End ; bye bye
EndIf
Macro SciCall(Message, wParam=0, lParam=0)
SendMessage_(hScintilla, Message, wParam, lParam)
EndMacro
SciCall(#SCI_SETEDGEMODE, #EDGE_LINE) ; activate the edge mode
SciCall(#SCI_SETEDGECOLUMN, 120 - 1) ; edge is at Column 120 ### You should change this to your liking
SciCall(#SCI_SETEDGECOLOUR, $00D7FF) ; use color == #PB_Color_Gold ($00D7FF) constant not defined :)