Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Disabling Code.
#2
Function Disable_Text
Trigger CSa     Help - how to add the trigger to the macro
Code:
Copy      Help
str s.getsel()
ARRAY(str) arr = s
for(int'i 0 arr.len)
,s.format(";_%s[]" arr[i])
,key (s)

Function Enable_Text
Trigger CSAa     Help - how to add the trigger to the macro
Code:
Copy      Help
str s.getsel()
ARRAY(str) arr = s
for(int'i 0 arr.len)
,arr[i].findreplace(";_")
,key (arr[i])
,outp "[]"

This is what I've got so far...is there any better way to do this?
Mainly the big problem is that this spits it out line by line...which eats up a lot of undo steps.
It'd be better if it set text as one block chunk.


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)