sharing about .NET and technology RSS 2.0
# Saturday, June 20, 2009

Today I've upgraded my blog to the latest version of DasBlog (v2.3).

I took the opportunity to categorize all my blog items and changed to another script for code highlighting. I use now SyntaxHighlighter to format my code and PreCode Snippet for Windows Live Writer.

4 Years ago I created a theme for DasBlog called 'Business'. And it seems to be a very popular theme :). I updated the theme and the following changes has been done

  • Style fixes for Firefox and Chrome
  • Icon changes
  • Added new styles for new features like livepreview, gravatar, etc.

It will soon update the theme in the main distribution of DasBlog on CodePlex.
Suggestions and or comments about the theme are always appreciated!

Saturday, June 20, 2009 6:23:23 PM (Romance Daylight Time, UTC+02:00) -  # -  Comments [25] -
DasBlog | Windows Live Writer
# Thursday, October 30, 2008

I am using Windows Live Writer for posting items to my blog. One thing that I don’t like in general, is that applications store resources in the MyDocuments folder and that you cannot specify another location. I’m a huge fan of portable applications, which means that they don’t need any registry settings and/or dependencies, so that you can simply xcopy deploy to another location. Certainly if you are using an external HD, USB flash drive, etc.

Windows Live Writer (WLW) stores by default the drafts in the ‘MyDocuments\My Weblog Posts\Drafts’ folder. I am using the latest beta (v14.0.5025.904) of WLW and didn’t find any settings through the application that enables you to customize folder paths.

I decided to dig into the assemblies of WLW via reflector to see how it is implemented. After some investigation I found that there is a class called ApplicationEnvironment that reside in the WindowsLive.Writer.CoreServices assembly. The Initialize method looks like this

image

Apparently WLW has built-in functionality that enables you to run the application with the settings carried around with the software. WLW checks if there is a folder called ‘UserData’ in the installation folder and uses that folder to store all settings, drafts, etc. This is really great, you simply copy all contents of your WLW directory to for example your external drive and you simply create a folder called ‘UserData’. If you start WLW again it will create all the necessary subfolders and settings.

image

I think it’s a feature of WLW beta that has not been documented yet ;-)

Thursday, October 30, 2008 2:08:31 AM (Romance Standard Time, UTC+01:00) -  # -  Comments [3] -
.NET | Windows Live Writer
# Friday, June 20, 2008

Version 0.28 of SyntaxColor4Writer has been compiled with the latest bits of Windows Live Writer 2008 (12.0.1370.325). You can download it from here.

Friday, June 20, 2008 10:20:31 PM (Romance Daylight Time, UTC+02:00) -  # -  Comments [5] -
.NET | SyntaxColor4Writer | Windows Live Writer
# Tuesday, February 12, 2008

Version 0.27 of SyntaxColor4Writer has been released. It has been updated with the newest release of Windows Live Writer v12.0.1367.1128 and CodeHighlighter 4.0.0051.

Tuesday, February 12, 2008 10:31:44 PM (Romance Standard Time, UTC+01:00) -  # -  Comments [5] -
.NET | SyntaxColor4Writer | Windows Live Writer
# Sunday, November 11, 2007

Finally Microsoft has released a final version of Windows Live Writer, namely Windows Live Writer 2008. This means also a new version of SyntaxColor4Writer that has been updated with the latest bit of Windows Live Writer and CodeHighlighter from Actipro, more info here.

Sunday, November 11, 2007 5:00:48 PM (Romance Standard Time, UTC+01:00) -  # -  Comments [0] -
.NET | SyntaxColor4Writer | Windows Live Writer
# Monday, September 24, 2007

A new version of SyntaxColor4Writer has been released, version 0.25. It has been updated with the newest release of Windows Live Writer Beta 3 and CodeHighlighter 4.0.0049 from Actipro.

Monday, September 24, 2007 9:40:00 PM (Romance Daylight Time, UTC+02:00) -  # -  Comments [2] -
.NET | SyntaxColor4Writer | Windows Live Writer
# Wednesday, July 11, 2007

A new version of SyntaxColor4Writer has been released, version 0.24. It has been updated with the newest release of Windows Live Writer Beta 2 and CodeHighlighter 4.0.0048 from Actipro. There are also some minor changes in the layout of the sidebar.

SyntaxColor4Writer024

Please leave a comment to let me know if there are any issues and/or feedback!

Wednesday, July 11, 2007 1:44:02 AM (Romance Daylight Time, UTC+02:00) -  # -  Comments [1] -
.NET | SyntaxColor4Writer | Windows Live Writer
# Monday, December 11, 2006
Version 0.23 of SyntaxColor4Writer is compiled against the new build release of Windows Live Writer 1.0.1 (Build 6) and Actipro Code Highlighter v4.0.0041.
Monday, December 11, 2006 12:55:38 AM (Romance Standard Time, UTC+01:00) -  # -  Comments [1] -
.NET | SyntaxColor4Writer | Windows Live Writer
# Monday, October 23, 2006

Version 0.22 of SyntaxColor4Writer is compiled against the new build release of Windows Live Writer 1.0 (Build 145). The issues around spell checking and FireFox will be fixed in the next release.

Monday, October 23, 2006 9:31:23 PM (Romance Daylight Time, UTC+02:00) -  # -  Comments [2] -
.NET | SyntaxColor4Writer | Windows Live Writer
# Friday, October 06, 2006

I've upgraded SyntaxColor4Writer with the new version of CodeHighlighter 4.0. It uses a new parsing model and it supports some additional language definitions, namely:

  • Assembly
  • Lua
  • MSIL
  • Pascal

For example:

HasChanges method of a DataSet in MSIL - Copy Code
1 .method public hidebysig instance bool HasChanges() cil managed 2 { 3 .maxstack 2 4 L_0000: ldarg.0 5 L_0001: ldc.i4.s 28 6 L_0003: call instance bool System.Data.DataSet::HasChanges(System.Data.DataRowState) 7 L_0008: ret 8 }

Any suggestions and/or feedback about SyntaxColor4Writer is welcome!

Friday, October 06, 2006 2:07:46 AM (Romance Daylight Time, UTC+02:00) -  # -  Comments [4] -
.NET | SyntaxColor4Writer | Windows Live Writer
# Friday, September 29, 2006

Today I published a new version of SyntaxColor4Writer on IStaySharp.NET. It's compiled against the new beta version of Windows Live Writer with the following added features:

  • 'Copy Code' link (copies everything to the clipboard)
  • Caption text
  • Customize backcolor, including line numbering
  • Spaces in tabs
  • Font size

 

Below you find some examples:

1 <system.web> 2 <compilation defaultLanguage="VB" debug="true"/> 3 <customErrors mode="ReadOnly"/> 4 </system.web>

C# code of the Main method class.

Program.cs - Copy Code
1 /// <summary> 2 /// The main entry point for the application. 3 /// </summary> 4 [STAThread] 5 static void Main() 6 { 7 Application.EnableVisualStyles(); 8 Application.SetCompatibleTextRenderingDefault(false); 9 Application.Run(new TestForm()); 10 }
Friday, September 29, 2006 2:12:38 AM (Romance Daylight Time, UTC+02:00) -  # -  Comments [0] -
.NET | SyntaxColor4Writer | Windows Live Writer
# Friday, August 18, 2006

Windows Live Writer is a desktop application that makes it easier to compose compelling blog posts using Windows Live Spaces or your current blog service. For Windows Live Writer I created a plugin called SyntaxColor4Writer that enables you to embed syntax highlighting in your blog posts. More details about SyntaxColor4Writer can be found here. This is how the plugin looks:

This is an example of a xml fragment generated by SyntaxColor4Writer:

<system.web> <compilation defaultLanguage="VB" debug="true" /> <customErrors mode="RemoteOnly" /> </system.web>
Friday, August 18, 2006 3:17:50 AM (Romance Daylight Time, UTC+02:00) -  # -  Comments [0] -
.NET | SyntaxColor4Writer | Windows Live Writer
Navigation
Archive
<March 2010>
SunMonTueWedThuFriSat
28123456
78910111213
14151617181920
21222324252627
28293031123
45678910
About the author/Disclaimer

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

© Copyright 2010
Christoph De Baene
Sign In
Statistics
Total Posts: 176
This Year: 2
This Month: 0
This Week: 0
Comments: 249
All Content © 2010, Christoph De Baene
DasBlog theme 'Business' created by Christoph De Baene