Difference between revisions of "Ch4 editing"

From Ribbon Commander Documentation
Jump to: navigation, search
(Images)
 
(4 intermediate revisions by the same user not shown)
Line 65: Line 65:
  
 
==== Images ====
 
==== Images ====
[[Image:Collage_6_2.png|Dynamic RibbonX logo|border]]
+
[[Image:LogoA-flat-big.png|Ribbon Commander logo|border]]
 
+
 
+
  
 
=== Lists ===
 
=== Lists ===
Line 240: Line 238:
 
| tweet
 
| tweet
 
|}
 
|}
 +
 +
 +
=== Code Highlighting ===
 +
<syntaxhighlight lang="vb" line>
 +
Public Sub MySub()
 +
    Dim i As Integer
 +
    For i = 1 to 100
 +
        Debug.Print i
 +
    Next i
 +
End Sub
 +
</syntaxhighlight>
 +
<br/>
 +
<syntaxhighlight lang="cpp" line>
 +
int MyFunc(const std::wstring &name) {
 +
    if ( name == "Yiannis" ) {
 +
        return 0;
 +
    }
 +
    else {
 +
        return 1;
 +
    }
 +
}
 +
</syntaxhighlight>
  
 
== For more information ==
 
== For more information ==
  
 
See "MediaWiki" from O'Reilly Media for more details.
 
See "MediaWiki" from O'Reilly Media for more details.

Latest revision as of 11:26, 21 October 2013

Jump to Main Page

All about wikis

The MediaWiki edit page has many interesting features.

Read on to learn them.

A button bar

The button bar contains buttons that are helpful for typesetting your text. Try clicking a few of them.

The edit box

The edit box is where you type your wikitext.

Test Area

This paragraph will be indented. The colon is placed only in the first line.
Very far indented indeed!

Pre-formatted

function dog_catcher($name, $truck) {
...
}

With tag pre

function dog_catcher($name, $truck) {
...
}

Bold, italics etc.

this is italics

this is bold

this is bold italics

these italics will end here and not continue on this second line

This is underlined text.

This is monospaced

Size, colour etc.

Here's some large text and some little words

Here is red text

Here is big text

Here is green text

Paragraph formatting

Here is a long paragraph in purple, blah blah blah...


Images

Ribbon Commander logo

Lists

Bulleted Lists

  • Dog
  • Cat
  • Cute little bird
    Tweet
    Tweet
  • This is a bulleted item
  • Here is another!
    • This is a level 2 bullet
      • Here is a level 3 bullet
    • Now we're back at level 2
  • And now back at level 1
  • My favorite dogs are:
    • Fido
    • Spike
      (My neighbour's dog)
    • Rover

Pre-formatted text in bulleted list

  • First item
    • Nested item
    here's the preformatted text
    • Another nested item

Numbered Lists

  1. Dog
  2. Cat
  3. Cute little bird
  1. This is a numbered item
  2. Here is another!
    1. This is a level 2 item
      1. Here is a level 3 item
    2. Now we're back at level 2
  3. And now back at level 1
  1. My favourite dogs are:
    1. Fido
    2. Spike
      (My neighbour's dog)
    3. Rover

Using HTML

  1. First item
  2. Second item
    1. First subitem
    2.    This inserted text will not break the numbering,
         and nor will this image:
         Collage 6 2.png
      
    3. Second subitem
  3. Third item

Definition Lists

Dog
A cuddly canine
Cat
A furry feline

Equivalently

Dog
A cuddly canine
Cat
A furry feline
Dog
A cuddly canine

WOOF WOOF

Man's best friend

Combining List Types

  • Bullet one
  • Bullet two
    1. Numbered item 1
    2. Numbered item 2
    3. Numbered item 3
  • Bullet three


  1. Numbered item one
  2. Numbered item two
    • Bullet 1
    • Bullet 2
    • Bullet 3
  3. Numbered item three
  1. Numbered item one
  2. Numbered item two
    Term
    Definition
  3. Numbered item three


Term 1
Definition 1
  1. Numbered item 1
  2. Numbered item 2
    1. Numbered subitem 1
      A preformatted text box in subitem 1
    2. Numbered subitem 2
Definition 1 continued
Term 2
Definition 2

Tables

dog woof
cat mew
bird tweet

Equivalently

dog woof
cat meow
bird tweet


dog woof
cat meow
bird tweet

Table Headings

Animal Sound
dog woof
cat meow
bird tweet

Captions

Animals and Their Sounds
Animal Sound
dog woof
cat meow
bird tweet


Code Highlighting

  1. Public Sub MySub()
  2.     Dim i As Integer
  3.     For i = 1 to 100
  4.         Debug.Print i
  5.     Next i
  6. End Sub


  1. int MyFunc(const std::wstring &name) {
  2.     if ( name == "Yiannis" ) {
  3.         return 0;
  4.     }
  5.     else {
  6.         return 1;
  7.     }
  8. }

For more information

See "MediaWiki" from O'Reilly Media for more details.