How to Post Source Code
If you need to paste a snippet of source code into your forum message, please use our special source code tags. These tags will make sure your code is formatted and colorized so that others can more easily read it.
To do this, first type your message as usual. When you're ready to paste in your source code, switch the message editor into "Source" view by clicking the button shown below:

Then, add one of the following sets of tags, depending on the language of the source code you want to paste in:
Once you add one of these sets of code tags, paste your source code in between them.
Please note that your source code will not appear to be formatted correctly when you preview your post. Your code will be stylized and formatted only when you submit your post.
If you need to make edits to your post after submission, select your post and copy it to the clipboard before clicking the "Edit" button. This will preserve your post in case the visual editor strips out any of your source code.
Here is an example of what your formatted source code snippet will look like:
protected void Button1_Click(object sender, EventArgs e)
{
if (!Map1.CustomOverlays.Contains("Markers"))
{
// Add a new feature as a marker
Map1.MarkerOverlay.Features.Add("Marker", new Feature(0, 52));
// Set the marker style, and make it available all over the zoomlevels.
Map1.MarkerOverlay.ZoomLevelSet.ZoomLevel01.DefaultMarkerStyle.WebImage = new WebImage("../../theme/default/img/marker_blue.gif", 21, 25);
Map1.MarkerOverlay.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20;
}
}