Show Changes Show Changes
Print Print
Recent Changes Recent Changes
Subscriptions Subscriptions
Lost and Found Lost and Found
Find References Find References
Rename Rename
Administration Page 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 List all versions

RSS feed for the FlexWiki namespace

Change Note Formatted Pre Tag
.
Owner
RequiredBuild
RelatedBugs
RelatedFeatureRequests
Summary
Allows FlexWiki FormattingRules to be applied to elements that have fixed-width font and whitespace

NOTE Until flexwiki.com is running on build 1709 or later, this page's example will not show up correctly. Please see http://peanut/flexwiki/default.aspx/MyWiki/ChangeNoteFormattedPreTag.html for an example of how it will work.

Description

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.

Usage

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

Not logged in. Log in

Welcome to the home of FlexWiki, a collaboration tool, based on WikiWiki, implemented using Microsoft .NET technologies

This is FlexWiki, an open source wiki engine.

This site supports the new NoFollow anti-spam initiative.
Change Style

Recent Topics