pachipachi note

趣味の開発メモ

はてなブログでSyntaxHighlighterを使う

ブログにソースコードを貼付ける時の見た目をよくしたい、ということで、SyntaxHighlighterを導入してみました。

とりあえず、テスト

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
    // Override point for customization after application launch.
    return YES;
}
    						
- (void)applicationWillResignActive:(UIApplication *)application
{
    // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
    // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
}

できました!!

引っかかったのは、ブログの編集モードで表示がすぐに反映されないことでしたw  
以下の記事の通りに行えば簡単にできました。ありがとうございます。

参考記事

MD Blog   はてなブログでSyntaxHighlighterでObjective-Cを表示 
http://md.hatenablog.com/entry/2012/05/22/072212

fenriswolf's blog  はてなブログでSyntaxHighlighterを使ってみた。
http://fenriswolf.hatenablog.com/entry/2012/01/22/080625