New version available! :
http://blogs.vbcity.com/hotdog/archive/2005/12/30/5759.aspx
download project (C#): AutoFormatter.zip
download exe (.net framework required): AutoFormatterExe.zip
screenshots: screenshot 1 screenshot 2
Seems that some people are using this little tool already which is great :) But for those of you downloading the source: be warned that I said from the beginning, the code itself isn't exactly great. It's rather ugly even and lacks the proper commentary, but it started out as a rush job 'surrounding' the html and the jscript codeblock itself ;-) Perhaps some day I'll clean the source itself up if there's a good reason ;-)
This is just a small project for myself to be able to add rich text out of visual studio to the blog in a standard format. Below is the entire listing (one form) which was created with the program itself. It's not fast (not at all), and not complete but it suits me :p Figured I would add it here as well both as a backup and who knows.... there may be others who find this handy? There are problably tons of tools for this already which are much better, but with this version I can set the defaults to any style The current version of the code sees: change of color, bold, italic and underline. The code is setup in such a way, that new 'changewatches' should be easy to add. Comments are not really needed, the code is plain and ugly (it's not optimized therefore I don't like it myself ;-) ), but if you have requests fire away.
update 14-9-2004. Added a minimize script. (the start minimized option doesn't work yet though).
Note: when trying to compile the code below it will halt on not finding the icon. just comment the line out and it should work fine
update 18-9-4. All settings are saved, Backcolor, borderstyle etc. are adaptable. Styles now are: Hidden,Scrollable or Full, Scrollable was a part I totally negelected before, but thanks to Edward for pounding that bit of sense into me :) All styles can be chosen as startup style
Be sure not to miss Edwards great commentary: http://blogs.vbcity.com/edward/archive/2004/09/16/299.aspx :)
Some examples:
Normal style:
using System;
namespace Testerdetest
{
///
/// General class to show that an application is still active
///
public sealed class ShowActive
{
public
static void Start()
{
int
[] ii = new int[90];
for (int i = 0; i < ii.Length; i++)
{
ii[i]=i;
}
for (int i = 0; i < 5; i++)
{
ii[i]=i;
} } } }
. . .
Some other styles (shortened a bit):
using System;
namespace Testerdetest
{
///
/// General class to show that an application is still active
///
public sealed class ShowActive
{
public static void Start()
{
}
} }
. . .
using System;
namespace Testerdetest
{
///
/// General class to show that an application is still active
///
public sealed class ShowActive
{
public static void Start()
{
}
} }
. . .
using System;
namespace Testerdetest
{
///
/// General class to show that an application is still active
///
public sealed class ShowActive
{
public static void Start()
{
}
} }
. . .
using System;
namespace Testerdetest
{
///
/// General class to show that an application is still active
///
public sealed class ShowActive
{
public static void Start()
{
}
} } and finally, just the text is possible as well:
using System;
namespace Testerdetest
{
///
/// General class to show that an application is still active
///
public sealed class ShowActive
{
public static void Start()
{
}
} }