Code example instructions
This article provides instructions and recommendations on how to create code example articles. A Code Example is an article that is accompanied with a downloadable and buildable example project, or which contains all of the code required to easily create one.
Create a page
Create a new article following the instructions in FNWiki:New Page.
Instructions on using features related to code examples are detailed in the following sections.
Apply a template (optional)
Nokia Developer automatically applies a very simple template to your article. You can instead use the Code snippet template for developers which has predefined subheadings - this is not mandatory, but it may help you formulate the article. You can also change the headings to suit your example.
Tip: To use Code snippet template for developers you must edit it, and copy its source text into your new page.
Add correct categories
Add Code Examples category in order to get your example counted. Additionally add relevant technology and application area categories.
Use advanced code syntax display (optional)
You can use code syntax highlighting of your article as described in Help:Code Syntax Highlighting. The highlighting plugin provides markup for all the main development frameworks supported on Nokia Developer wiki (and many more)
You should provide the example application or any related file as a link to the source repository in Github. This is typically referenced in the sourcecode and/or installationfile fields in the ArticleMetaData.