Luc and I both use PowerGUI to format the code and then use "Copy as HTML" in PowerGUI to export the code to formatted html. We insert this html code into the post on the VMware VMTN Communities using the "HTML" button in the upper right corner.
I don't think that the numbers of the hostid and the hostnetworksystemid are related. So you're trick will probably not work. I will try to find a solution that works.