Re: [Clip] clip to run tidy on directory or all open docs?
- Hi Jonathon,
>fixing them?) Or all open documents? And put all the results in a single newI was tinkering with the following clip. Easy to increment doc index(s)
>, or a new text file and open it in Notepad? (It's easier to
from left to right I'd done that before. So, one thing led to another, it
didn't take long for it to fall together.
The doc index (increments one at a time toward the right) portion works, I
tested that part. I may want use some day, but currently I not ready, no
tidy set up yet, no current html projects yet, etc.
I think it's ok to, but I'm not absolutely sure that it is ok to use
variables on the right hand portion of the appendtofile line. So, the only
thing perhaps that I might question is my appendtofile line
another way is
but that's much longer and I don't like email line break
If choose to trial run the clip be sure to first read the four commented
lines at the top of the clip.
; for error check only, runs tidy on all open documents
; F:\notetab\tidyerr.txt will be created/opened
; focus furthest left hand tab/doc
; then run this clip
^!IfFileExist "F:\notetab\StdError.err" add
^!AppendToFile "^%allerr%" ^%idx%^%NL%^%ea_err%^%NL%^%NL%
^!IfFileExist "F:\notetab\tidyerr.txt" view_err
^!Info [L]No error reports
; ----<end of clip<<