| 33 | === Header Section === |
| 34 | |
| 35 | Please 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 | |
| 41 | This page is one of the !MapGuide Community CodeSamples. Visit the CodeSamples page to view more! |
| 42 | |
| 43 | }}} |
| 44 | |
| 45 | === Syntax Highlighting === |
| 46 | |
| 47 | Trac 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 |
| 54 | function OnMapInitialized() { |
| 55 | // Map has been initialized now we're off to the races. |
| 56 | alert("Map has been initialized"); |
| 57 | } |
| 58 | </script> |
| 59 | }}} |
| 60 | |
| 61 | Please use this where possible to make your inline examples more readable. |