06-13-2010, 08:44 PM
Not in near future.
Try this.
Diff in scintilla.qml (Size: 2.86 KB / Downloads: 544)
Also need Xdiff: Find differences between 2 strings/files; patch
Also need this function, if don't have.
Function SciGetText
Try this.
Diff in scintilla.qml (Size: 2.86 KB / Downloads: 544)
Also need Xdiff: Find differences between 2 strings/files; patch
Also need this function, if don't have.
Function SciGetText
;/
function hwnd str&s
;Gets text from a scintilla-based control in QM.
;Such controls are: code editors (QM_Code class), output (QM_Output), tips (QM_Tips), qml viewer code view (QM_Code).
;Note that, if there is a link, it will get some garbage text around. In the control it is hidden.
;hwnd - control handle.
;s - receives text.
;EXAMPLE
;int h=id(2201 _hwndqm) ;;qm output
;;int h=GetQmCodeEditor ;;currently active code editor
;str s
;SciGetText h s
;ShowText "" s
int lens=SendMessage(hwnd SCI.SCI_GETTEXTLENGTH 0 0)
s.fix(SendMessage(hwnd SCI.SCI_GETTEXT lens+1 s.all(lens)))