You are here: PSPad forum > English discussion forum > Re: How to change setting in tidy?
Posted by: Fergal | Date: 2012-09-20 09:41 | IP: IP Logged
When I use HTML > Tidy > Tidy Clean Document Wrap, it changes;
<li><a href="index.html">Home</a></li>
to
<li>
<a href="index.html">Home</a>
</li>
I'd prefer my code to look like the original version. How can I alter the "Tidy Clean Document Wrap" setting so that spacing after tags is left like the code below?
<li><a href="index.html">Home</a></li>
Thanks!
--
Fergal Crawley
Business Advice Forum
Forum Promotion
Posted by: Manfred62 | Date: 2012-09-20 19:09 | IP: IP Logged
you can use 'Tidy clean document - nowrap'
or change settings in 'TiDyCFG.ini'
--
PSPad 4.5.9 (2525)
Posted by: Fergal | Date: 2012-09-21 08:23 | IP: IP Logged
Thanks Manfred62.
Manfred62:you can use 'Tidy clean document - nowrap'
I tried that but it still splits the code, as I described in the first post of this topic. Plus I prefer "wrap" so that I don't have to scroll horizontally to view a really long line of code.
Manfred62:...or change settings in 'TiDyCFG.ini'
Do you know which setting I should change?
Thanks again!
--
Fergal Crawley
Business Advice Forum
Forum Promotion
Posted by: Manfred62 | Date: 2012-09-21 10:11 | IP: IP Logged
not sure, what to change in the config. Take a look here:
tidy.sourceforge.net
or play around with this online version (to test it):
infohound.net
think, must be something with the 'pretty-print' options?
regards Manfred
--
PSPad 4.5.9 (2525)
Posted by: Fergal | Date: 2012-09-22 11:19 | IP: IP Logged
Thanks Manfred. That online version tidies up my code perfectly. However, I can't figure out how to replicate that in PSPad.
--
Fergal Crawley
Business Advice Forum
Forum Promotion
Posted by: Fergal | Date: 2012-09-22 11:29 | IP: IP Logged
Update - I've changed the following setting and it seems to have done the trick.
TiDyCFG.INI > TiDy clean Document - wrap > indent:yes
I changed the above to
indent:auto
Thanks again Manfred.
--
Fergal Crawley
Business Advice Forum
Forum Promotion
Posted by: myf | Date: 2012-09-26 08:56 | IP: IP Logged
Some time ago I made myself a "documented ini" for tidy, may be useful: tidy-default-config-with-documentation.ini.
Editor PSPad - freeware editor, © 2001 - 2024 Jan Fiala, Hosted by Webhosting TOJEONO.CZ, design by WebDesign PAY & SOFT, code Petr Dvořák, Privacy policy and GDPR