Joe Wood's Blog

Technology

<November 2008>
SuMoTuWeThFrSa
2627282930311
2345678
9101112131415
16171819202122
23242526272829
30123456


Navigation

Subscriptions



Making <summary> tags fit on one line.

I'm always trying to maximize the amount of visible code that can fit on a screen at one time.  I think this improves the ability to cross reference calls and evaluate logic etc..  One annoying feature of the VS.NET is the way the <summary> tag takes up at least three lines when really it could just append everything onto one line. So...

<summary>
My comment
</summary>

could be

<summary>My comment</summary>

To do this I just do a Find and Replace with a regular expression.  The Find String is:

\<summary\>.*\n:b+///:b{.*}\n:b+///:b\</summary\>

And the replace string uses the tag above (in curly brackets):

\<summary\>\1\</summary\>

One thing that is strange, why does VS.NET use a different tagged expression syntax to System.Text.RegularExpression?

posted on Wednesday, March 09, 2005 12:35 PM by joewood





Powered by Dot Net Junkies, by Telligent Systems