Hola,
if I well remember, in a previous version of TextMate there was an html command, in HTML bundle, to tidy the page collecting in she <style<</style> section all the attributes of the tags into body. i.e.: <p align="center">hello</p> become <style ...> text-align: center; </style> in the Head section, and in the bode we have <p>hello</p>
How can I find this command to insert in the bundle?
Many thanks and regards!
Salvo M.
On 19/11/2005, at 13:17, salvo wrote:
if I well remember, in a previous version of TextMate there was an html command, in HTML bundle, to tidy the page collecting in she <style<</style> section all the attributes of the tags into body. i.e.: [...]
I don't think there was -- but from terminal run “man tidy” (or “tidy -h”) then you'll see all the options tidy supports.
E.g.:
-upper or -u to force tags to upper case (default is lower case)
-asxhtml to convert HTML to well formed XHTML
Also “tidy -help-config” will give you the config options. These are better documented on the net though.
Il giorno 19/nov/05, alle ore 13:50, Allan Odgaard ha scritto:
I don't think there was -- but from terminal run “man tidy” (or “tidy -h”) then you'll see all the options tidy supports.
perhaps. I had a computer failure and I've reinstalled TextMate: perhaps I had a customized by someone command...
E.g.:
-upper or -u to force tags to upper case (default is lower
case)
-asxhtml to convert HTML to well formed XHTML
this one and also -clean ?
-clean or -c to replace FONT, NOBR and CENTER tags by CSS
How can we modify the standard Tidy command in the bundle to do this cleaning? Simply putting "tidy -clean"?
thanks!
Salvo
On Nov 19, 2005, at 13:50, Allan Odgaard wrote:
On 19/11/2005, at 13:17, salvo wrote:
if I well remember, in a previous version of TextMate there was an html command, in HTML bundle, to tidy the page collecting in she <style<</style> section all the attributes of the tags into body. i.e.: [...]
I don't think there was -- but from terminal run “man tidy” (or “tidy -h”) then you'll see all the options tidy supports.
Or use a ~/.tidyrc, eg. like mine: http://m.mongers.org/pub/dotfiles/ tidyrc.
Have a nice day. Morten
Il giorno 19/nov/05, alle ore 14:39, Morten Liebach ha scritto:
Or use a ~/.tidyrc, eg. like mine: http://m.mongers.org/pub/ dotfiles/tidyrc.
many thanks!
Salvo