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.