Although I can't find it now, I seem to recall seeing a nifty TextMate command that would harvest all inline styles from an HTML document and place them in a stylesheet at the top of the document (eg, sorted by id).
Anyone remember in which bundle that command could/can be found?
jon ______________________________ Still Water--what networks need to thrive. http://still-water.net/
That would be nifty, although unless you gave them id or classes first most html with inline styles don't have an identifier. On May 21, 2010, at 6:50 AM, Jon Ippolito wrote:
Although I can't find it now, I seem to recall seeing a nifty TextMate command that would harvest all inline styles from an HTML document and place them in a stylesheet at the top of the document (eg, sorted by id).
Anyone remember in which bundle that command could/can be found?
Tidy will do that, and Tidy can be called from within the HTML bundle.
On 21 May 2010, at 12:50, Jon Ippolito wrote:
Although I can't find it now, I seem to recall seeing a nifty TextMate command that would harvest all inline styles from an HTML document and place them in a stylesheet at the top of the document (eg, sorted by id).
Anyone remember in which bundle that command could/can be found?
jon ______________________________ Still Water--what networks need to thrive. http://still-water.net/
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
I just tried it....no love! On May 21, 2010, at 8:46 AM, Darren Brierton wrote:
Tidy will do that, and Tidy can be called from within the HTML bundle.
On 21 May 2010, at 12:50, Jon Ippolito wrote:
Although I can't find it now, I seem to recall seeing a nifty TextMate command that would harvest all inline styles from an HTML document and place them in a stylesheet at the top of the document (eg, sorted by id).
Anyone remember in which bundle that command could/can be found?
On 2010-05-21 08:59, David Miers wrote:
I just tried it [the HTML bundle's Tidy command]....no love!
Tidy has about a bazillion options, all available both on the command line and in a config file. I think the option you're looking for is "clean":
# clean # Type: Boolean # Default: no # Example: y/n, yes/no, t/f, true/false, 1/0 # # This option specifies if Tidy should strip out surplus presentational tags # and attributes replacing them by style rules and structural markup as # appropriate. It works well on the HTML saved by Microsoft Office products.
In any case, I don't think that the "Tidy" command in the HTML bundle has this option enabled by default. You could either edit the command to add "--clean yes" to the command line, or create ~/.tidyrc and add "clean: yes" there. It's worthwhile to look at the tidy man page; it has a *lot* of formatting options.
I wasn't even looking for this, but perhaps the mega bundle from subtlegradient (Thomas Aylott) contains what you were remembering.
I haven't "pressed the button" myself, but you might want to take a look.
A screenscast is at http://tinyurl.com/32po4dy. It is referred to as the "Balance Jr 2.0 for TextMate ScreenCast," but Balance Jr is just one of many things in the bundle ("tAylott_subtleGradient.tmbundle").
Under CSS is "Merge all STYLE tags into HEAD" hmm!
The most recent version of the bundle that I have found seems to be from 2006, and I can't actually locate one online at the moment. Look around. Ask Thomas!
eo
On May 21, 2010, at 3:50 AM, Jon Ippolito wrote:
Although I can't find it now, I seem to recall seeing a nifty TextMate command that would harvest all inline styles from an HTML document and place them in a stylesheet at the top of the document (eg, sorted by id).
Anyone remember in which bundle that command could/can be found?
jon ______________________________ Still Water--what networks need to thrive. http://still-water.net/
I should read this list more often. All my stuff is now on github at http://github.com/subtleGradient/
Balance Jr was moved to: http://github.com/subtleGradient/SelectStuff.tmbundle It really needs an update, but I'm busy and stuff or whatever. It works well enough for me I guess.
A bunch of stuff is in http://github.com/subtleGradient/subtlegradient.tmbundle
I don't remember where the merge styles thing is.
I should probly get around to releasing all my other bundles one of these days…
— Thomas Aylott SubtleGradient MooTools
On Thu, May 27, 2010 at 12:55 AM, Eric O'Brien ericob@extramonday.com wrote:
I wasn't even looking for this, but perhaps the mega bundle from subtlegradient (Thomas Aylott) contains what you were remembering. I haven't "pressed the button" myself, but you might want to take a look. A screenscast is at http://tinyurl.com/32po4dy. It is referred to as the "Balance Jr 2.0 for TextMate ScreenCast," but Balance Jr is just one of many things in the bundle ("tAylott_subtleGradient.tmbundle"). Under CSS is "Merge all STYLE tags into HEAD" hmm! The most recent version of the bundle that I have found seems to be from 2006, and I can't actually locate one online at the moment. Look around. Ask Thomas! eo
On May 21, 2010, at 3:50 AM, Jon Ippolito wrote:
Although I can't find it now, I seem to recall seeing a nifty TextMate command that would harvest all inline styles from an HTML document and place them in a stylesheet at the top of the document (eg, sorted by id).
Anyone remember in which bundle that command could/can be found?
jon ______________________________ Still Water--what networks need to thrive. http://still-water.net/
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate