Help:Formatting

(Redirected from TextFormattingRules)

You can format your text easily using wiki markup. This consists of normal characters like asterisks, single quotes or equation marks which have a special function in the wiki, sometimes depending on their position. For example, to format a word in italic, you include it in two single quotes like ''this''

Text Formatting Markup

Formatting That Applies Anywhere

Description    You type    You get
Italic text    ''italic''    italic
Bold text    '''bold'''    bold
Bold and italic    '''''bold & italic'''''    bold & italic
Hyperlink to wiki page
   [[Home]]
   Home
Hyperlink to wiki page with different link text—use | to separate text    [[Home|Main doc page]]    Main doc page
Hyperlink to external web page    http://www.sun.com    http://www.sun.com
Hyperlink to external web page with different link text—space separates text    [http://www.sun.com Sun Microsystems]    Sun Microsystems
Anchor definition. Use the id attribute with an HTML tag that takes this attribute, such as <span> or <div>.    <span id="anchor_to_link_to">optional text</span>    optional text
Hyperlink to anchor
   [[#anchor_to_link_to|go to anchor]]
   go to anchor above
Inline image. Use | to separate options, which include thumb for an 80x80 pixel thumbnail, 99px to size the image to 99 by 99 pixels square, 66x99px to size the image to 66px wide by 99px high, left or right to float the image left or right, box to created a boxed image.    [[image:aracari-sm.png]]    image:aracari-sm.png
Inline image with thumb, right, and box. See Media Wiki Sampler: Images for more examples.    [[image:aracari.png|thumb|right|box]]   
box
Escape wiki markup    <nowiki>no ''markup''</nowiki>    no ''markup''
Table of Contents: Use two underscores before TOC and two after. The table of contents is inserted at the location of this identifier and lists all headings defined with wiki heading tags (=, ==, ===, and so on). If you want to exclude a heading, such as the main heading, use HTML tags instead of wiki tags. For example, <h1>Main Heading</h1>.    __TOC__   

Contents

 

Apply Only at Beginning of Line

Description    You type    You get
Indented text    :Indented text        Indented text
Headings of various levels    =level 1=   

Level 1

     ==level 2==   

Level 2

     ===level 3===   

Level 3

     ====level 4====
  

Level 4


Horizontal rule
   ----     
Bulleted list    * first item

* second item
** first sub-item
** second sub-item
*** first sub-sub-item

*** second sub-sub-item
  
  • first item
  • second item
    • first sub-item
    • second sub-item
      • first sub-sub-item
      • second sub-sub-item
Numbered list    # Step 1

# Step 2<br /> more on two<br /> yet more on two
# Step 3
## Sub-step 1

## Sub-step 2
  
  1. Step 1
  2. Step 2
    more on two
    yet more on two
  3. Step 3
    1. Sub-step 1
    2. Sub-step 2
Mixture of bulleted
and numbered lists



   # Step 1

# Step 2
#* Sub-item
#* Sub-item

* Bullet 1
* Bullet 2
*# Sub-step 1

*# Sub-step 2
  
  1. Step 1
  2. Step 2
    • Sub-item
    • Sub-item
  • Bullet 1
  • Bullet 2
    1. Sub-step 1
    2. Sub-step 2
Definition list    ;Term

:Definition 1

:Definition 2
  

Term </dt>
Definition 1 </dd>
Definition 2 </dd>

Preformatted text can be done either with a <pre> tag or with a space at the beginning of each line of text.    <pre>

This text is preformatted
and has the same number of
lines as the source has line breaks.
</pre>

 This preformatted text
 has a space at the
 beginning of each line

  
This text is preformatted
and has the same number of
lines as the source has line breaks.
 this preformatted text 
 has a space at the 
 beginning of each line
A table with borders, a header row, a simple row, and a row with the valign attribute defined.   

{|- border="1"
! Heading 1
! Heading 2
|-
| cell 1
| cell 2
|- valign="top"
| single line
| two lines<br />of content

|}
  
Heading 1 Heading 2
cell 1 cell 2
single line two lines
of content


Other formatting

Beyond the text formatting markup shown above, here are some other formatting references:

Not logged in. Log in, Register

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo