Hubology: Codedrops (and a note on colorized code on The Hub)
There is a new File Folder, Codedrops, for simple code snippets that are submitted by hubFS contributors. Note that registered users have read and download status, but not rights status on that folder.
In a recent thread, newly registered member Lewis Bruck, asked for the F# code for the FDX demo. I mention the links to the Codedrops folder for FDX/Webcrawl (F# Team) demos (thanks Don and James) and agree with Lewis that cut and paste of colorized code should be easy. I quote from that thread:
One more quick item regarding cut and paste on colorized code.
The line breaks that would normally exist would exist as html markup. That is disallowed in the code colorizer utility that we use (and Scott extended for F#; see Coloring Your Code on The Hub and Hubology: F# source HTML color coding native on The Hub).
I know that this breaks all of the rules for laziness (I actually had to expend effort on this, too), but if you cut and paste the code into Wordpad (or other editing tool) first and then into VS2005, all of the appropriate line breaks remain intact.
Seriously, please make sure you also read my previous comments regarding this colorized code for cut/paste operations. Line 334 of the code declares an event with a type "event<time>", only the code colorizer sees "<time>" and thinks that it is html markup and removes the "<time>" tag completely as there is no corresponding "</time>" tag. Good practice if I were rendering regular old HTML, BUT I'M NOT. So, we are talking with the author of that plugin for changes/workarounds. I can't complain because the code colorizer is actually a time saver for most of these things and it is FREE.