Difference between revisions of "EDT:Code snippets"

From Eclipsepedia

Jump to: navigation, search
Line 18: Line 18:
  
 
#On the page of interest, click '''Edit''' and, if necessary, log in to eclipse.org.  
 
#On the page of interest, click '''Edit''' and, if necessary, log in to eclipse.org.  
#Use the Wikitext editor to add a new snippet. In particular, use the '''source lang="java"''' tag to provide a background for your snippet with syntax highlighting.
+
#Use the Wikitext editor to add a new snippet. In particular, embed your code in this markup:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;source lang="java"&gt;<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/source&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>
  
:For help with editing, see [http://meta.wikimedia.org/wiki/Help:Wikitext_examples| Wikitext examples]. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>
+
:<br>For help with editing, see [http://meta.wikimedia.org/wiki/Help:Wikitext_examples| Wikitext examples]. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>
  
 
*************<br>
 
*************<br>

Revision as of 11:32, 9 February 2012

Declaring values of EGL native types

Working with custom types

Writing basic logic

Working with a database

Accessing a service

Declaring widgets



To share a code snippet:

  1. On the page of interest, click Edit and, if necessary, log in to eclipse.org.
  2. Use the Wikitext editor to add a new snippet. In particular, embed your code in this markup:     

                   <source lang="java">

                   </source>      

For help with editing, see Wikitext examples.