Testing WP-Syntax
A few weeks ago I decided I needed a project or something to learn. It had to be work related but still had to be something I don’t do very often at work. So I decided it was time to take a plunge into ASP.NET 2.0.
I moved the site from Drupal to WordPress yesterday and found a great plugin WP-Syntax to get syntax highlighting
working. And what better way to learn than to write about it as you go. Writing forces you to really understand what it is that you are reading and not just skip trough chapters.
The book I got was WROX ASP.NET Professional 2.0.
Since yesterday I’ve read up to chapter 3 and I find it very interesting. I haven’t used ASP.NET since 1.1 and I have to say it has got a long way since that. Why I started with 2.0 now that 3.5 is out is simply because I had this nice pack of books at home.
Get to the point!
Well this post was just to see if the WP-Syntax plugin can handle CSharp like it should and if it does I will be writing my own introduction and thoughts around ASP.NET 2.0 as I read, learn and code. So do check back. I’ll try to keep a weekly post about ASP.NET and it should be published every weekend.
Don’t consider this something to read, it’s just a class to see the highlight in WP-Syntax. The class below has been copied from C-Sharp Stations tutorial.
// Namespace Declaration using System; // helper class class OutputClass { string myString; // Constructor public OutputClass(string inputString) { myString = inputString; } // Instance Method public void printString() { Console.WriteLine("{0}", myString); } // Destructor ~OutputClass() { // Some resource cleanup routines } } // Program start class class ExampleClass { // Main begins program execution. public static void Main() { // Instance of OutputClass OutputClass outCl = new OutputClass("This is printed by the output class."); // Call Output class' method outCl.printString(); } }

