Page 1 of 1

Html tidy

Posted: 2010-09-30 07:58
by ianraba
Hi all
I have tidy installed as part of my php config on a new server
How do i set this up for ktml and in my required server libraries?
this hasn't been available to me before and would like to use it

Anyone got any advice on best way to use htmltidy?

Thanks

Re: Html tidy

Posted: 2010-10-02 15:02
by Fred
Hi Ian,
The Tidy is configured by default in ktml to look in the usual / most likely places on your server. So, in theory anyway, it should work "out the box".

Look at the includes folder:
ktm/modules/xhtml/ktml4_xhtml_config.php
an example / default ktml usage can be found in the .tidyconf file in the same location.

For info and usage look here: http://www.w3.org/People/Raggett/tidy/

Hope this helps

Re: Html tidy

Posted: 2010-10-02 15:45
by ianraba
Thanks Fred
It's definatley not picking it up by default
ALso wanted to use it in the forms/convert to XHTML server behaviour which requires the control panel to be set with the path

I have coded a work around but its not ideal as i have to edit the code and break the dw access to do it

The link you gave me is hard for me also as its example is perl and have trouble getting to understand how to implement this as it is

definatley need to get this working asap

Re: Html tidy

Posted: 2010-10-05 00:26
by ianraba
Hi
Looking at the .tidyconf it says sample config file for HTML tidy ?
should it be running with those config settings?
also my $GLOBALS['KTML4_XHTMLTempPath'] = dirname(__FILE__).'/../../temp/.tidy/'
this seems to imply a temp folder in my includes folder?
One doesn't exist, is this why it isn't working?

Re: Html tidy

Posted: 2010-10-10 09:38
by Fred
I have never messed around with tidy.
I always assumed it is working since ktml will strip certain tags on update.

Am I missing the boat here?

I just ran "locate tidy" at the command line on my server and the only "tidy's" I can see is the actual package and the references on different sites, including squirrel mail using it.

There is no temp folders or anything.