Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "Help:Editing"

Line 5: Line 5:
 
{{:Special:Allpages/Template:}}
 
{{:Special:Allpages/Template:}}
  
If you have to write source code in Java, you can use this template:
+
If you have to write source code in Java, you can wrap code inside source tags <source lang="java"></source>:
  
 
{| class="prettytable"
 
{| class="prettytable"
Line 40: Line 40:
 
</source>
 
</source>
 
|}
 
|}
 +
 +
You can use it for any other language supported by [http://qbnz.com/highlighter/ GeShi].

Revision as of 06:49, 9 October 2008

See the MediaWiki editing help.

Here is a complete list of the templates available on the Eclipse wiki, just waiting yours to add up!

If you have to write source code in Java, you can wrap code inside source tags <source lang="java"></source>:

Language Source Result
Java
<source lang="java">
 public static void main(String args[]) {
      System.out.println("Hello world");
 }
</source>
 public static void main(String args[]) {
      System.out.println("Hello world");
 }
XML
<source lang="xml">
<extension point="org.eclipse.stp.bpmn.diagram.EAnnotationDecorator">
      <decorator
            class="org.eclipse.stp.bpmn.sample.annotationdecoration.AnnotationDecorator"
            source="textAnnotationSource"/>
</extension>
</source> 
<extension point="org.eclipse.stp.bpmn.diagram.EAnnotationDecorator">
      <decorator
            class="org.eclipse.stp.bpmn.sample.annotationdecoration.AnnotationDecorator"
            source="textAnnotationSource"/>
</extension>

You can use it for any other language supported by GeShi.

Back to the top