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 3: Line 3:
  
 
For the infobox template, see [[Template:Infobox]].
 
For the infobox template, see [[Template:Infobox]].
 +
 +
If you have to write source code in Java, you can use this template:
 +
 +
{| class="prettytable" style="text-align:center"
 +
|-
 +
! Language !! Source !! Result
 +
|-
 +
! Java
 +
| <pre>&lt;source lang="java"&gt;
 +
public static void main(String args[]) {
 +
      System.out.println("Hello world");
 +
}
 +
&lt;/source&gt;
 +
</pre>
 +
|| <source lang="java">
 +
public static void main(String args[]) {
 +
      System.out.println("Hello world");
 +
}
 +
</source>
 +
|-
 +
! XML
 +
| <pre><source lang="xml">
 +
<extension point="org.eclipse.stp.bpmn.diagram.EAnnotationDecorator">
 +
      <decorator
 +
            class="org.eclipse.stp.bpmn.sample.annotationdecoration.AnnotationDecorator"
 +
            source="textAnnotationSource"/>
 +
</extension>
 +
</source> </pre>
 +
|| <source lang="xml">
 +
<extension point="org.eclipse.stp.bpmn.diagram.EAnnotationDecorator">
 +
      <decorator
 +
            class="org.eclipse.stp.bpmn.sample.annotationdecoration.AnnotationDecorator"
 +
            source="textAnnotationSource"/>
 +
</extension>
 +
</source>
 +
|}

Revision as of 06:24, 24 February 2008

See the wikipedia help.


For the infobox template, see Template:Infobox.

If you have to write source code in Java, you can use this template:

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>

Back to the top