Found via the Powertoys
Weblog, a
seamless add-in for Visual Studio.Net from Colin
Coller that formats your source code as HTML, embeds the CSS into the code, and
copies to the clipboard. Just paste it into an HTML file (or blog entry), and
enjoy.
Microsoft Word (or anything else) not required. This took me 2 seconds and 2
clicks to produce:
61: private DataTable
GetLatestDataTable(params object[]
args)
62: {
63: DataSet ds = new DataSet();
64:
65: OracleConnection conn = new OracleConnection(
66: "User Id=username;Password=password;
Data Source=server;");
67: OracleCommand cmd = new OracleCommand(
68: "Select * from NotReallyATable",
conn);
69: OracleDataAdapter adapt = new OracleDataAdapter(cmd);
70: adapt.Fill(ds);
71:
72: return ds.Tables[0];
73: }
Awesome. Go
get it.
- G

This
work is licensed under a
Creative
Commons License.