Changes between Version 10 and Version 11 of CodeSamples


Ignore:
Timestamp:
Nov 20, 2007, 2:55:51 PM (16 years ago)
Author:
jbirch
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • CodeSamples

    v10 v11  
    1919== Creating New Pages ==
    2020
     21=== Page Title ===
     22
    2123When creating a new page, please use the following convention for the page location:
    2224
     
    2931You can easily do this by editing the the CodeSamples page, copying another entry, and then modifying it to fit your title.  Once you have saved the page, you will have a handy link to follow to edit your own sample.
    3032
     33=== Header Section ===
     34
     35Please include the following on every Code Sample page.  It allows users to easily navigate the page, and if they come in off a search engine link they can get to the code samples index more easily.
     36
     37{{{
     38
     39[[PageOutline]]
     40
     41This page is one of the !MapGuide Community CodeSamples.  Visit the CodeSamples page to view more!
     42
     43}}}
     44
     45=== Syntax Highlighting ===
     46
     47Trac has some really cool [wiki:WikiProcessors syntax highlighting] built into it.  The MapGuide Trac doesn't have all of these set up, but at least the text/html one works, and does a reasonable job with both HTML and JS.  For example:
     48
     49{{{
     50#!text/html
     51<script type="text/javascript">
     52
     53// Map loaded handler
     54function OnMapInitialized() {
     55    // Map has been initialized now we're off to the races.
     56    alert("Map has been initialized");
     57}
     58</script>
     59}}}
     60
     61Please use this where possible to make your inline examples more readable.