HomePage HomePage
JW Davidson JW Davidson

RSS feed for the TestJwd namespace

Show Changes Show Changes
Edit Edit
Print Print
Recent Changes Recent Changes
Subscriptions Subscriptions
Lost and Found Lost and Found
Find References Find References
Local Search

History

9/14/2007 1:51:09 PM
-74.15.242.151
7/21/2007 2:07:05 PM
-10.10.192.236
List all versions List all versions
Preformatted Text Formatting Rules
.

Whitespace Prefix

Any line starting with whitespace becomes preformatted text:

 Public Class MyClass
    Public Sub New()
        DoCoolStuff()
        If IsReallyCool Then
            DoSomethingEvenMoreCool()
        End If
    End Sub
 End Class
 public class CSharpExample {
    CSharpExample() {
       int n = 5;
       object[] test = new object[n];
    }
 }

Text inside of a PRE block doesn't get hyperlinks automatically added to it.

 Here is another '''example.'''

Non-indented preformatted text

RequiredBuild

It is difficult to cut and paste source files into Wiki and then insert 1 space before every line. The "PRE block" solves this problem. There are 2 usage scenarios: simple syntax and syntax with a key.

Simple Syntax:

{@
your text goes
here and it does not have to start with space or tab
}@

Produces:

your text goes
here and it does not have to start with space or tab

Syntax with key (if for some reason your text contains }@ at the beginning of a line)

{@UniqKey
any text
here including
}@ at line beginning
still inside pre
}@WrongKey
still inside pre
}@UniqKey

Produces:

any text
here including
}@ at line beginning
still inside pre
}@WrongKey
still inside pre

Not logged in. Log in

The wiki for all things Objective Design Solutions

Recent Topics
PreformattedTextF... PreformattedTextF...
List all versions List all versions
Go to Google.com
Change Style
Powered by Flexwiki v2.0.0.218