Guest User

Untitled

a guest
Nov 29th, 2018
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Const HIGHLIGHT_ERRORLINE:Int = 3 'Markershortcut
  2. Global _highlighthandle:Int = -1
  3. textarea.Markerdefine(HIGHLIGHT_ERRORLINE, SC_MARK_BACKGROUND)
  4. textarea.Markersetback(HIGHLIGHT_ERRORLINE, 255, 0, 0)
  5.  
  6.  
  7. Function HighlightCurrentLine(s:TScintillaTextArea)
  8.     Local Line:Int = TextAreaCursor(s, TEXTAREA_LINES)
  9.     Print "High " + _highlighthandle
  10.     If _highlighthandle <> - 1 Then
  11.         s.Markerdeletehandle(_highlighthandle)
  12.     End If
  13.     _highlighthandle = s.Markeradd(Line, HIGHLIGHT_ERRORLINE)
  14.     RedrawGadget(s)
  15. End Function
Add Comment
Please, Sign In to add comment