Equation Hiding using lineOffset
Posted: Thu Jun 18, 2015 10:13 am
I am Beginner in Livecode. I got a code for hiding equations in my Scrolling field, The equations starts with "\begin{equation}" and ends with "\end{equation}", In between these two tags equations are placed. My problem is my code is executed only once. My Scrolling field contains lots equations. Also, I want to restore these equations when I press a button. using loops how I rewrite my code
on mouseUp
put the htmlText of field "MytextField" into myHtml
put lineOffset("begin{equation}",myHtml) into tBegin
put lineOffset("end{equation}",myHtml) into tEnd
set the hidden of line tBegin to tEnd in fld "MytextField" to true
end mouseUp