Tags

, ,

Hi all,

As you maybe know, tool what I use for writting posts for this blog, is Windows Live Writer.

A great free tool that is able to connect with wordpress without any problem.

Writing another post I realise that it was necesary for me adding some source code.

I discover a great Plug-in performing this task.

Its name is Code Snippet, and you can download it form here:

http://plugins.live.com/writer/detail/code-snippet-plugin-for-windows-live-writer

The way it works is very simple, as you can see in next picture:

image

And here there is an example about code looks like.

C#

public bool SaveLogToIsolatedStorageFile()
      {
          mut.WaitOne(); // Wait until it is safe to enter

          try
          {
              // Obtain the virtual store for the application.
              IsolatedStorageFile myStore = IsolatedStorageFile.GetUserStoreForApplication();

              // Specify the file path and options.
              using (var isoFileStream = new IsolatedStorageFileStream(logFileName, FileMode.Create, myStore))

 

XAML:

<!--ContentPanel - place additional content here-->
        <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
            <ScrollViewer HorizontalAlignment="Left" Height="460" Margin="0,10,0,0" VerticalAlignment="Top" Width="456">
                <TextBlock TextWrapping="Wrap" Name="LogTextBlock" Text="" Height="521"/>
            </ScrollViewer>

 

For me was very helpful, hopefully it will for you.

I was trying others but result wasn’t good.

Happy posting guys!! See you soon