W3C home > Mailing lists > Public > html-tidy@w3.org > October to December 2001

Re: Tidy under Windows A easier way

From: Eric <e.richards@clear.net.nz>
Date: Sat, 24 Nov 2001 01:03:23 +1300
Message-ID: <014401c17416$f919ba80$0a664fcb@richards.paradise>
To: <html-tidy@w3.org>, "Dave Raggett" <dsr@w3.org>
make a batch file with these three lines
 
find /v /n "" %1 > %1_num.txt
copy %1 "%1_newver.htm"
tidy.exe -config config.txt -f %1_notes.txt -modify "%1_newver.htm"

put this batch file in the same folder as TIDY.EXE and go and add to you "right click as below" 



      Send any file to any program. 
      When you click on to a file that your computer has never opened before you would of seen the "Open With" box,  see Image 1  (for this example I made a text file and called it "a.bcd" and clicked on to it.)

      The first time you try this option you should always un-tick the "Always use this program to open this file", otherwise if you choose the wrong program to open the file, It can be harder to undo that set up. I normally un-tick the box, then if the program works all right, I go back and reopen it with the box ticked.
      
              
            Image 1. 
     
           
              
            Image 2. 
     While this is a good method to open a file, there is a better alternative, not necessary a replacement option but this works better than opening a program then "going to look for the file" you just use the mouse right click button, then use "Send  To"  see Image 2  this can display a list of programs to open up your file.
     
      So what then if your program is not on the list ? No worry, keep on reading and you will see how easy it is to put that program on the "Send To" list.
     
       Using Image 3  
      1 . Right click the "Start" button 
      2 . Click on to " Explore". 
      3 . Open the "Send To" folder normally   "C:\windows\SendTo" or   "C:\windows\ShellNew\SendTo" 
      4 . Right click inside the folder on the white space below were the files are listed and select "New".  
              
            Image 3. 
     
      In this example we are going to "Create Shortcut" to "Notepad", you might ask "why do that?" you click on a small text file and Notepad will open it up. Well! I find this handy to open a *.HTML file with Notepad or another program type file that can be changed with a text editor.



      Then. Select the "Shortcut". 
      When  Image 4  first appears, the " Command line:" is empty. 
      Browse for the program you are making the shortcut for. In this case it is notepad.exe, Then your image will look like my  Image 4  Then click on to Next > 
      If you are happy with the name click "Finish".  
              
            Image 4. 
     

See, I told you it was easy, by making all the short cuts you need, you can send any file to any suitable program of that file type, quick and easy.

From Eric



----- Original Message ----- 
From: "Dave Raggett" <dsr@w3.org>
To: "Derek Potter" <derekpotter@bigfoot.com>
Cc: <html-tidy@w3.org>
Sent: Friday, November 23, 2001 9:58 PM
Subject: Re: Tidy under Windows


Many thanks for the tip. I am forwarding it to the HTML-Tidy
list in case others are interested.

On Thu, 22 Nov 2001, Derek Potter wrote:

> Hello Dave,
> 
> Herer is a simple tip for using Tidy under Windows. (Well, I haven't
> seen it on your site anyway!) You can add a shell extension to the
> registry with this reg.file: 
> 
> ---
> REGEDIT4
> 
> [HKEY_CLASSES_ROOT\htmlfile\shell\tidy]
> @="&Tidy"
> 
> [HKEY_CLASSES_ROOT\htmlfile\shell\tidy\command]
> @="\"c:\\progra~1\\tidy\\tidy.exe\" --word-2000 true --clean true --writeback true -f err.txt -m \"%1\""
> 
> ---
> 
> Now you can just right click on any file recognised as "html" by
> Windows and Tidy is included in the menu. Edit the actual command line
> to taste!
> 
> -- 
> Best regards,
>  Derek                          mailto:derekpotter@bigfoot.com
> 

Regards,

-- Dave Raggett <dsr@w3.org> or <dave.raggett@openwave.com>
W3C Visiting Fellow, see http://www.w3.org/People/Raggett 
tel/fax: +44 122 586-6240 (or 7351) +44 771 213 7629 (mobile)






Received on Friday, 23 November 2001 07:03:06 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 3 April 2012 06:13:47 GMT