I've released CopySourceAsHtml version 1.2.0 with changes suggested by Scott Galloway, Phil Haack, Rick Lobrecht, Geoff Appleby, and others.
The biggest change in this release is that CSAH uses VS.NET's syntax highlighting and VS.NET's font and color settings automatically. If VS.NET can highlight it, CSAH can copy it, and your code should look the same in your browser as it does in your editor.
- You can turn word wrapping on and off. If "wrap words" is checked, lines are rendered in <p> blocks. Otherwise, lines are rendered in <pre> blocks. Check this if your blog layout isn't wide enough for your code.
- You can strip line breaks from the generated HTML. Handy if your blog software converts newlines automatically.
- You can add additional RSS rules to the file, line, and block styles. Use this to add borders, scroll bars, etc. to your code.
- You can embed styles or use a stylesheet. If "embed styles" is checked, tags have style attributes. If "embed styles" is unchecked, tags have class attributes, and the generated HTML includes a style block.
- You can change which menu items are added to the context menus from within the add-in.
- The generated HTML is copied to the clipboard in text and CF_HTML formats.
- The code is cleaner and more modular, and the object model should make it easy to add new features in future versions.