Archive
Posts Tagged ‘comments’
I’m a member of

Top Posts
- Having problems with IIS caching your Silverlight application?
- Automatically scrolling to a selected item in a ScrollViewer in Silverlight
- Writing a BrightScript syntax highlight extension for Visual Studio 2010
- Where are all the WPF LOB samples?
- Load operation failed for query 'Getcustomer'. The metadata stored by the ObjectContext is different than the metadata stored by the ObjectContext's connection. This can happen if the connection string is changed after the ObjectContext is created.
- Build Your Own Game (BYOG) - Using CreateJS and Box2dWeb
- HTML 5 Video tag and IIS
- Developing Windows 8 - Encoding
- Getting the user credentials both in and out of the browser in Silverlight
- Test your website from your mobile device while still developing in Visual Studio
Tag Cloud
ASP.NET
ASP.NET MVC
ASP.NET Web API
Behaviors
book
c#
Canvas
Code Camp
Code Generation
CSS
CSS3
Dashboard
Dashboards
Databinding
Debugging
DomainDataSource
Entity Framework
HTML
HTML5
JavaScript
JSON
Linq2Entities
Linq2Sql
MEF
MVVM
Prism
Razor
REPL
REST
Roslyn
Security
Silverlight
Speaking
SQL
SQL Server
Triggers
Visual Studio
WCF
WCF RIA Services
WCF Web API
Web
Windows 8
WinJS
WPF
Xaml
Recent Posts
Blogroll
Archives
- May 2013
- April 2013
- March 2013
- February 2013
- January 2013
- November 2012
- October 2012
- September 2012
- August 2012
- July 2012
- May 2012
- April 2012
- March 2012
- February 2012
- January 2012
- December 2011
- November 2011
- October 2011
- September 2011
- August 2011
- July 2011
- June 2011
- May 2011
- April 2011
- February 2011
- January 2011
- November 2010
- October 2010
- September 2010
- August 2010
- July 2010
- June 2010
- May 2010
- April 2010
- March 2010
- February 2010
- November 2009
- October 2009
- August 2009
- July 2009
- February 2009




Posting source code on my blog
I had a request from a reader as to how they could post sample code in response to an article I had written. I thought this was an excellent question and it can be hard to find the right answer when all you want to do is post your question.
The following is a quick example of posting a code snippet for XAML which is actually XML. If you want to submit XAML in a post or comment then you must wrap it with the following tag:
It will then look like this once rendered:
There are many other language targets. I use these common ones:
• csharp
• vb
• sql
• xml
Refer to this link for other targets as well.
Hope that helps….