Ultraviolet syntax highlighting test

Posted by Alpha Sun, 02 Dec 2007 01:53:00 GMT

Ruby:

class Foo
  def bar
    puts "hello world"
  end
end

C with linenumbers using the blackboard theme:

   1  void bar() {
   2    printf("hello world\n");
   3  }

Objective-C with the twilight theme:

#import <Foundation/NSObject.h>

@interface Fraction: NSObject {
    int numerator;
    int denominator;
}

-(void) print;
-(void) setNumerator: (int) d;
-(void) setDenominator: (int) d;
-(int) numerator;
-(int) denominator;
@end

Python with linenumbers and using the pastels_on_dark theme:

   1  class MyClass:
   2      "A simple example class"
   3      i = 12345
   4      def f(self):
   5          return 'hello world'

Done using Ultraviolet.

Posted in  | no comments | no trackbacks

Comments

Trackbacks

Use the following link to trackback from your own site:
http://blog.kejadlen.net/trackbacks?article_id=ultraviolet-syntax-highlighting-test&day=01&month=12&year=2007

(leave url/email »)

   Comment Markup Help Preview comment