
![]() |
Show Changes |
![]() |
Edit |
![]() |
|
![]() |
Recent Changes |
![]() |
Subscriptions |
![]() |
Lost and Found |
![]() |
Find References |
![]() |
Rename |
![]() |
Administration Page |
| Search |
History
| 4/10/2006 7:33:43 PM |
| -68.209.248.222 |
| 4/8/2006 6:33:34 AM |
| -24.120.168.34 |
| 3/15/2006 6:45:14 AM |
| -68.209.248.222 |
| 3/15/2006 6:45:00 AM |
| -68.209.248.222 |
| 3/15/2006 6:27:08 AM |
| -68.209.248.222 |
![]() |
List all versions |
This feature introduces the new element { } to the FlexWiki FormattingRules. It is analagous to the existing {@ }@ markup, however, it allows for Textile and other FlexWiki formatting to be applied to the text inside.
It is common for developers to show code snippets in FlexWiki using this notation
{@
public void Foo()
{
// comment here
string s;
...
}
}@
and this would in turn result in
public void Foo()
{
// comment here
string s;
...
}
However, for purposes of showing large amounts of code, a lot of developers are used to seeing code presented with color syntax highlighting. To allow for this, you can use the { } syntax and then use the normal FlexWiki FormattingRules to apply styles. For example, this code
{+
%blue%public void%% Foo()
{
%green%// comment here%%
%blue%string%% s;
...
}
}+
Would result in this output
public void Foo() { // comment here string s; ... }
which will look extremely familiar to all of the Visual Studio developers out there.
Most of the normal FlexWiki processing is done on this text, it just maintains the fixed-width font and the whitespace presentation that is normally associated with the {@ }@ FlexWiki tag or the <pre> HTML tag. This processing includes Simple , Linking, Text size and Color, and Alternative or Textile