Re: Tex-Edit, colorize HTML text?
Re: Tex-Edit, colorize HTML text?
- Subject: Re: Tex-Edit, colorize HTML text?
- From: Timothy Bates <email@hidden>
- Date: Sat, 01 Sep 2001 01:59:40 +1000
On 9/1/01 12:04 AM, "Rachel" <email@hidden> wrote:
>
It seems like I have wasted 2 days trying to figure this out.
>
I want to change every occurrence of a certain font in an HTML text to a
>
color.
tell application "Tex-Edit Plus"
tell front window
repeat with n from 1 to count of style runs
if font of style run n is "Times" then
set color of style run n to red
end if
end repeat
end tell
end tell
>
In fact, I wish I had a very flexible way to format HTML text.
there is an example script that comes with tex-edit to do this
also check out
http://www.malcolmadams.com/te/