This has been something that has been annoying me for quite a while, how do I show c# and javascript code in the blog in a decent way.
The other important factor to note here is I am using a hosted blog, so all the solutions with plugins are no good to me.
Well I finally figured it out thanks to this stackoverflow page here
you put this in your code but make sure you put it in the Visual view and not the HTML. I’m not sure how to type this so I have typed the square bracket rather than putting them in (because then it puts in code)
[sourcecode language='javascript'] [/sourcecode]
here is an example
function customerid_onchange(){ // Get value of the selected customer account var lookupItem = Xrm.Page.getAttribute("parentcustomerid").getValue();