Difference between revisions of "Formatting"

From berki WIKI
Jump to: navigation, search
(Boxes)
(Boxes)
Line 3: Line 3:
 
= Boxes =
 
= Boxes =
  
 
+
=== Warning ===
 
{{warning|....text...}}
 
{{warning|....text...}}
 
<pre>
 
<pre>
Line 9: Line 9:
 
</pre>
 
</pre>
  
 
+
=== Note ===
 
{{note|....text...}}
 
{{note|....text...}}
 
<pre>
 
<pre>
Line 15: Line 15:
 
</pre>
 
</pre>
  
 
+
=== Tip ===
 
{{tip|....text...}}
 
{{tip|....text...}}
 
<pre>
 
<pre>
Line 21: Line 21:
 
</pre>
 
</pre>
  
 
+
=== Code block ===
 
<source lang="java">
 
<source lang="java">
 
class ForDemo {
 
class ForDemo {
Line 35: Line 35:
 
... code ..
 
... code ..
 
</source>
 
</source>
 +
</pre>
 +
 +
=== No format ===
 +
<pre>This is an unformatted text</pre>
 +
<pre>
 +
<pre>... text ...</pre>
 
</pre>
 
</pre>
  
 
= Text formatting =
 
= Text formatting =

Revision as of 18:02, 8 September 2016


Boxes

Warning

WarningIcon.png

Warning
....text...

{{warning|..text...}}

Note

ImportantIcon.png

Note
....text...

{{note|..text...}}

Tip

TipIcon.png

Tip
....text...

{{tip|..text...}}

Code block

class ForDemo {
    public static void main(String[] args){
         for(int i=1; i<11; i++){
              System.out.println("Count is: " + i);
         }
    }
}
<source lang="java">
... code ..
</source>

No format

This is an unformatted text
<pre>... text ...

</pre>

Text formatting