Bilbro Bloggins

Musings of Brian Bilbro

Test Code Post From Graffiti Post Editor

This is a test post using the Graffiti post editor to see how code will display pasted from various sources.

 

Sample pasted from Visual Studio:

 

 

public object GetValueByIndex(int index)object returnData = null;if(index<this.EntityProperties.Length)this.EntityProperties[index].GetValue(this,null);return returnData;


 

Sample pasted from Visual Studio to Word 2007 and into Graffit post editor:

            public object GetValueByIndex(int index)

            {

                  object returnData = null;

 

                  if(index<this.EntityProperties.Length)

                  {

                        returnData = this.EntityProperties[index].GetValue(this,null);

                  }

 

                  return returnData;

            }

 

 


Sample pasted from Visual Studio to Word 2007 and into Graffit post editor and then cleaned with Graffiti Word Cleaner:

            public object GetValueByIndex(int index)
            {
                  object returnData = null;
 
                  if(index<this.EntityProperties.Length)
                  {
                        returnData = this.EntityProperties[index].GetValue(this,null);
                  }
 
                  return returnData;
            }

 

 


Sample pasted from Visual Studio to Notepad and into Graffit post editor:

   public object GetValueByIndex(int index)
  {
   object returnData = null;

   if(index<this.EntityProperties.Length)
   {
    returnData = this.EntityProperties[index].GetValue(this,null);
   }

   return returnData;
  }
 

 

 I gave up on trying to mess with the HTML with the Graffiti post editor.   Even if I didn't make a change, mearly switching from source view to non-source view would muck up the post.  It wasn't usable.  :(

» Similar Posts

  1. Test Code Post From Windows Live Writer
  2. Test using a source code plug-in for Windows Live Writer
  3. Dropdown Filter Web Part in SharePoint – Part Two

» Trackbacks & Pingbacks

    No trackbacks yet.
Trackback link for this post:
http://bilbrobloggins.com/trackback.ashx?id=6
 

» Comments

    There are no comments. Kick things off by filling out the form below.

» Leave a Comment