Source Code Plug In Test

22 July 2009 09:21

Just testing one of the source code plug-ins to Windows Live Writer to see how the code actually falls our when posted from Live Writer, as it seems to run off the editing area quite a bit when I try to post.  So this is what I see in WLW:

SampleCode

 

And this is the actual code when it gets pasted:

   1:  public static class RatingsHelper
   2:      {
   3:          private enum ControlType
   4:          {
   5:              Display,
   6:              DataEntry
   7:          }
   8:   
   9:          public static string StaticRatingsDisplay(this HtmlHelper helper, string name, int MaximumRating, double Step, double ActualValue, IDictionary<string, object> htmlAttributes)
  10:          {
  11:              return BuildControl(name, MaximumRating, Step, ActualValue, ControlType.Display, htmlAttributes);
  12:          }
  13:   
  14:          public static string RatingsEntry(this HtmlHelper helper, string name, int MaximumRating, double Step, double defaultValue, IDictionary<string, object> htmlAttributes)
  15:          {
  16:              return BuildControl(name, MaximumRating, Step, defaultValue, ControlType.DataEntry, htmlAttributes);
  17:          }
  18:   
  19:      // Implementation Here
  20:  }

 

Let’s see how that falls out when it’s posted.

Tags:

Disclaimer
The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

© Copyright 2024 Jim Moore