Feature Request #1 – Syntax Highlighting finally done

I receive requently of requests for help, for new tutorials and for certain features on my website.

The one request I constantly receive since approx. 4 years is that my tutorial should use syntax highlighting for the code.

I finally took the time to implement this. This was quite time consuming as I build most articles from Docbook sources and I hadn’t touched my build process in the last 3 years. So I had to re-learn what I did a few years ago and change it so that I get syntax highlighting. I also took the time to clean everything a bit up so hopeful future changes will be simpler.

I hope you like the result, I also tried to improve the look with improved stylesheets.

Here is an example from the: Eclipse RCP tutorial and here is an example for the Android Tutorial.

Let me know what you think.

About Lars Vogel

Lars Vogel is the founder and CEO of the vogella GmbH and works as Eclipse and Android consultant, trainer and book author. He is a regular speaker at international conferences, With more than one million visitors per month his website vogella.com is one of the central sources for Eclipse and Android programming information.
This entry was posted in vogella. Bookmark the permalink.

9 Responses to Feature Request #1 – Syntax Highlighting finally done

  1. Looks great – many thanks as always!

  2. Wolfgang says:

    Hi Lars,

    great that you got it to work! Syntax highlighting helps a lot when looking at code.

    Now you should write a blog post, which describes your publishing process. Docbook + syntax hightlighting + export to mobile formats may be interesting to a lot of people. Also, it might serve as an easy documention for yourself :-)

  3. Lars Vogel says:

    @Wolfgang: I have a Docbook tutorial since a long time and I updated it also for this setup: http://www.vogella.de/articles/DocBook/article.html

  4. Stefan Sonesson says:

    Very nice. Inspiring work :-)

  5. Mur says:

    Hi Lars.
    Yes, it looks nice, but have you seen this highlighter?
    http://code.google.com/p/syntaxhighlighter/

  6. Lars Vogel says:

    @Mur: Yes but I wanted a non JavaScript solution.

  7. Nils says:

    Well done! Code highlighting is helpful indeed, when reading the tutorials.
    And thanks for supporting non-javascript-enabled devices!

    Nevertheless, I have to admit I am not a big fan of serif fonts in regular text.

  8. Lars Vogel says:

    @Nils: what would be your choice?

Comments are closed.