A small 'improvement' to CSharpFormat

by Juan 25. June 2008 12:02
Share on Facebook

I don't know why Jean-Claude Manoli's code formatter wasn't working correctly for aspx code even though the code was prepared for it for what I saw; so I modified it a little (the problem may have been me though)

I really HATE regular expressions, so this code I added is most probably far from correct, but I got it working after trial and errors, and debugging. Feel free to improve it, but I'm not interested in lessons on RegEx because I don't really want to have anything to do with them =)

The output from the original code was this:

Orignal code output

And with my little modification, it changes to this:

image

Here is the class I modified

and the entire project with that class in it

All credit goes to Jean-Claude Manoli

The next step is coloring class names like VS.NET 2008, but that is a little more complicated I think... 

Tags: , , , , ,

Blogging | Programming

Comments

Powered by BlogEngine.NET 1.4.5.15
Theme by Mads Kristensen Modified by Juan Manuel Formoso

About the Author

Juan Manuel
Networking
View my LinkedIn profile View my Facebook profile View my Twitter feed View my StackOverflow CV

Juan Manuel Formoso
There is a theory which states that if ever anyone discovers exactly what the Universe is for and why it is here, it will instantly disappear and be replaced by something more bizarrely inexplicable.

There is another theory which states that this has already happened.

E-mail me Send mail

Hosting is not Free

Google Reader Picks

Most comments

Calendar

<<  March 2010  >>
MoTuWeThFrSaSu
22232425262728
1234567
891011121314
15161718192021
22232425262728
2930311234

View posts in large calendar

Recent comments

Comment RSS

Disclaimer

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

© Copyright 2008