pygments lexer for ABAP syntaxhighlighting

Yesterday I submitted a patch to the pygments bugtracker with a functioning lexer for ABAP. I hope that it'll be included in the next release.

A little example and the first public piece of ABAP code that has been highlighted with pygments.

REPORT z_hello_world.

PARAMETERS: gv_name TYPE text50.

WRITE: 'Hello', gv_name.

The lexer currently has one little problem. If you define a variable with the same name as an ABAP keyword, it'll also highlight that variable. Maybe I'll get around to fixing that, but that'll be quite a task since that means parsing every ABAP statement and not just highlighting the keywords.

read...

footnote sorting in python

A couple of month ago the german linux magazin asked known guru's of a few different programming languages to solve a little programming task in their preferred language. In the article readers were encouraged to contribute their solution of the task and the redaktion would look them over, pick a few subjective winners and publish an article on the results.

I decided to have a shot at it using my language of choice, Python. Needless to say I didn't get a pick for the article.

read...