Tigraine
Daniel Hoelbling talks about .NET

Major site rehaul

June 5th, 2008 . by Daniel Hölbling

wordpress

After doing yesterday’s post on CruiseControl.NET it bit me that I really really needed a new theme for my blog. Posting sourcecode on a constrained surface doesn’t really work, and after seeing the XML posted yesterday I decided I need to do something about it.

So I went to themes.wordpress.net and found the theme you are currently looking at. It’s nothing really special, but I like the clean look and it has no fixed width. The theme came with no widget support so I followed this handy guide and hacked them into the theme myself. It really isn’t that hard after all, although I found this php-html mix quite disturbing.

After being done with the new design, I decided that source is horribly unreadable, and I’m not really happy with my previous solution of doing screenshots (not indexable, not copyable). So I found this really cool JavaScript library by Alex Gorbatchev called SyntaxHighlighter that highlights <pre> tags and adds some very nice formatting to your code.
Here’s an example:

static class Program
      {
          /// <summary>
          /// The main entry point for the application.
          /// </summary>
          [STAThread]
          static void Main()
          {
              Application.EnableVisualStyles();
              Application.SetCompatibleTextRenderingDefault(false);
              Application.Run(new Form1());
          }
      }


And while being at it I also updated to the most current version of WordPress. So if you encounter any oddities (especially with the feed), please tell me about it so I can fix it.

Oh and by the way, while being at it I installed iWPhone so that any user who visits http://tigraine.at with an iPhone or iPod touch will get a stripped down site without too much clutter that’s been optimized for the iPhone resolution. Images get removed from the front-page but everything still looks cool. :)


View Comments to “Major site rehaul”

  1. comment number 1 by: foxx21

    I’ll give your blog a chance with the iphone when I’m back at home!

    take care
    b.

  2. comment number 2 by: peter

    very unübersichtlich. blocksatz!! und vielleicht eine andere schriftart ?

  3. comment number 3 by: Tigraine

    Also mit der Schrift bin ich auch noch nicht so 100%ig glücklich. Das mit dem Blocksatz ist ein guter Einwurf. Ich werd mal sehen was ich da tun kann.


  4. [...] The Plugin assumes you are using the same syntax highlighting script as I do and will put your code into a <pre class="c-sharp" name="code"> [...]

Leave a Reply

Name

Mail (never published)

Website

blog comments powered by Disqus