# Grr...stupid crappy source formatting...and a challenge for all!

<datetime class="hidden">2006-09-06T00:00</datetime>
<!-- category -- mostlylucidcouk, Imported -->

## 
Grr...stupid crappy source formatting...and a challenge for all! 

posted on Tuesday, June 08, 2004 11:30 PM

Typical, I had a method all sorted which let me past code into Dreamweaver in a nice formatted way not perfect but ...now the stupid thing has stopped working...hmm...OK, here's what I need - anyone have a method to do this? I need a tool or some other way to past code straight into Dreamweaver which meets these criteria:

- Fixed Stylesheet - so not dozens of &lt;p&gt; or &lt;font&gt; tags.
- Does not use &lt;pre&gt; tag - this is important, pre just sucks for page flow
- Dynamically converts 'tab' code indents to &nbsp; tags
- Makes 'clean' HTML - so no dodgy namespaces etc.

I've tried [Roy Osherove's Macro](http://weblogs.asp.net/rosherove/archive/2004/02/05/67957.aspx) - suffers from using the whole MS word stuff - so plain awful HTML, I can't believe there's not a really elegant solution for doing this - well, not one that I can find. My real ideal would be some sort of button which lets me just copy source into the clipboard - click the button - anywhere you paste it now uses the ultra-clean HTML - no auto-sensing (which has currently messed up for me), nothing, just pure HTML...  Any ideas anyone???