<http://forum.pspad.com/read.php?f=2&i=10699&t=10691> ----------------------------------------------------------------
Although, I am sure you could do this with a user convertor (see http://www.gogogadgetscott.info/pspad/konvertory.htm), I been using a script (see http://gogogadgetscott.info/computers/cc/snippet.php?sid=34). Sub ToggleValue text = handleSelText("") Dim toggles(6,1) i = 0 toggles(1,0) = "TRUE" toggles(1,1) = "FALSE" i = i + 1 toggles(i,0) = "True" toggles(i,1) = "False" i = i + 1 toggles(i,0) = "true" toggles(i,1) = "false" i = i + 1 toggles(i,0) = "0" toggles(i,1) = "1" i = i + 1 toggles(i,0) = "ON" toggles(i,1) = "Off" i = i + 1 toggles(i,0) = "on" toggles(i,1) = "off" i = i + 1 toggles(i,0) = "On" toggles(i,1) = "Off" For i = 0 To 6 ret = Replace(text, toggles(i,0), toggles(i,1)) If ret <> "" & ret <> text Then text = ret Else ret = Replace(text, toggles(i,1), toggles(i,0)) If ret <> "" & ret <> text Then text = ret End If End If Next handleSelText text End Sub addMenuItem "Toggle Value" , menuName, "ToggleValue", "Ctrl+t" [%sig%] -- PSPad freeware editor http://www.pspad.com
