Friday, May 15, 2009

Testing SyntaxFormatter

Finally figured out how to do syntax highlighting in Blogger with SyntaxHighlighter! Took a little time, but this is the webpage that did the trick for me:

http://urenjoy.blogspot.com/2008/10/publish-source-code-in-blogger.html

Here's the result using some Delphi code:


type
TGeneric<AnyType> = class
class procedure Swap(var X,Y: AnyType);
end;

type
TGeneric = class
class procedure Swap<AnyType>(var X,Y: AnyType);
end;


And a test of an Obj-C script I just found


#import "HelloWorld.h"

@implementation HelloWorld

- (void)sayHello
{
NSLog(@"Hello World");
}

@end

0 comments:

Post a Comment