Register  |  Login
ThinkGeo - GPS Tracking and Mapping Solutions  |  Home  |  Cygnus Track  |   Code Community

Discussion Forums

The online community for users of Map Suite GIS components

How to Post Source Code and Attachments
Last Post 02-09-2009 06:37 AM by ThinkGeo. 1 Replies.
Printer Friendly
Sort:
PrevPrev NextNext
Topic is locked
Author Messages Informative
ThinkGeoUser is Offline
ThinkGeo Support
MVP
MVP
Posts:447
Avatar

--
12-04-2008 02:22 AM

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:

Screenshot

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;
        }
    }
Tags: source code, code tags, forum help, attachments
ThinkGeoUser is Offline
ThinkGeo Support
MVP
MVP
Posts:447
Avatar

--
02-09-2009 06:37 AM

How to Post Attachments

If you need to post more than a brief snippet of code, or would like to upload an entire file of source code for our support team to review, you can use the attachment system.

To attach a file to a post you're writing, scroll down below the Submit button until you see the "Attachments" panel, then click the arrow on the right side to expand it. Then you'll see these controls:

Attachments Panel

Simply select "Browse," find the file you want to attach, then press "Upload." The file you attach will appear at the end of your post once it is submitted, with a link to download it. If you attach an image, you'll optionally be able to insert it into your message.

Please observe the following limitations when attaching files:

  • Up to three files can be attached to each post.
  • Attached images can be no larger than 640 pixels wide and 1024 pixels tall.
  • Each attached file must be less than 250 KB in size.
  • Only files with the following extensions are allowed:
    • .bmp
    • .c
    • .cpp
    • .cs
    • .csproj
    • .doc
    • .docx
    • .gif
    • .h
    • .htm
    • .html
    • .jpg
    • .js
    • .pdf
    • .png
    • .sln
    • .txt
    • .vb
    • .vbproj
    • .xaml
    • .xml
    • .zip
Topic is locked

Active Forums 4.2