Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Control characters in QM Output
#1
I wonder whether there exists a function to omit control characters, when getting text from QM Output, for example

Quote:<open "Notepad_Toolbars /1722">

I am aware of topic Winmerge in QM_Editor

Thanks in advance.
#2
This is my approach. Any advice is mostly welcome.

Function tempf14
Code:
Copy      Help
str sout="$temp$\qm_out.txt"
str s=GetQMOutput
;mes s
str sl so sou
int j k
foreach sl s
,j=find(sl "<")
,if j<0
,,so=sl
,,sou.formata("%s[]" so)
,,continue
,k=find(sl ">" j)
,if k<0
,,so=sl
,,sou.formata("%s[]" so)
,,continue
,so=sl
,so.replace("" j k-j+1)
,sou.formata("%s[]" so)
,
sou.setfile(sout)
run sout
#3
Can use scintilla API to remove hidden text, but easier and faster with replacerx or like your code.
#4
Thanks again! This is my approach with replacerx :

Quote:sl.replacerx("[<].*?[>]" )


Forum Jump:


Users browsing this thread: 1 Guest(s)