Changes between Version 6 and Version 7 of CodeSnippets
- Timestamp:
- 10/15/08 09:59:45 (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
CodeSnippets
v6 v7 5 5 This 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. 6 6 7 = = Snippets ==7 = Snippets = 8 8 9 9 Eventually, we'll add categories to these. For now, just pick the one you're interested in... … … 12 12 * [wiki:CodeSamples/GetStaticExtents Retrieving spatial extents from providers that do not support dynamic extents] 13 13 14 = = Creating New Snippets ==14 = Creating New Snippets = 15 15 16 === Page Title === 16 These 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 20 Anyone 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 == 17 23 18 24 When creating a new page, please use the following convention for the page location: … … 26 32 You 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. 27 33 28 == = Header Section ===34 == Header Section == 29 35 30 36 Please 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. … … 38 44 }}} 39 45 40 == = Syntax Highlighting ===46 == Syntax Highlighting == 41 47 42 48 Trac 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: … … 62 68 Please use this where possible to make your inline examples more readable. 63 69 64 == = Conventions ===70 == Conventions == 65 71 66 72 * Please try to provide both C++ and C# examples of your snippets if possible