Changes between Version 6 and Version 7 of CodeSnippets


Ignore:
Timestamp:
Oct 15, 2008, 9:59:45 AM (16 years ago)
Author:
jbirch
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • CodeSnippets

    v6 v7  
    55This is a central location for users to share useful code snippets for FDO.  Make sure that you read the FDO Cookbook chapter of the FDO Developers Guide as well.
    66
    7 == Snippets ==
     7= Snippets =
    88
    99Eventually, we'll add categories to these.  For now, just pick the one you're interested in...
     
    1212 * [wiki:CodeSamples/GetStaticExtents Retrieving spatial extents from providers that do not support dynamic extents]
    1313
    14 == Creating New Snippets ==
     14= Creating New Snippets =
    1515
    16 === Page Title ===
     16These code snippets are a community resource.  You can use them in your work, but if you come up with something that seems like it should be easy but took you a while to figure it out, please add it here.  Other developers are probably running into the same problem.
     17
     18== Account Requirements ==
     19
     20Anyone with a valid [http://www.osgeo.org/osgeo_userid OSGeo Userid] may contribute and enhance community code snippets.  Get involved and have fun!
     21
     22== Page Title ==
    1723
    1824When creating a new page, please use the following convention for the page location:
     
    2632You can easily do this by editing this CodeSnippets 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 snippet.
    2733
    28 === Header Section ===
     34== Header Section ==
    2935
    3036Please include the following on every Code Snippet page.  It allows users to easily navigate the page, and if they come from a search engine they can get to the snippets index more easily.  For an easier approach, download the plain text version of any existing CodeSnippet (see the bottom of each page) to start from.
     
    3844}}}
    3945
    40 === Syntax Highlighting ===
     46== Syntax Highlighting ==
    4147
    4248Trac has some really cool [wiki:WikiProcessors syntax highlighting] built into it.  The FDO Trac doesn't have all of these set up, but at least the C++ one works (add #!cpp to the top of your code block), and does a reasonable job with typical FDO code highlighting.  For example:
     
    6268Please use this where possible to make your inline examples more readable.
    6369
    64 === Conventions ===
     70== Conventions ==
    6571
    6672 * Please try to provide both C++ and C# examples of your snippets if possible