markdown测试:Swift代码着色

苹果Swift代码着色效果测试:

class Person {
    let name: String
    init(name: String) { self.name = name }
    var apartment: Apartment?
    deinit { println("\(name) is being deinitialized") }
}

class Apartment {
    let number: Int
    init(number: Int) { self.number = number }
    var tenant: Person?
    deinit { println("Apartment #\(number) is being deinitialized") }
}

代码来自:http://www.cnblogs.com/hbsi/p/3781073.html

posted @ 2014-07-23 12:53  博客园团队  阅读(675)  评论(0编辑  收藏  举报