add code highlight

This commit is contained in:
梁杰
2014-08-25 21:14:56 +08:00
parent e0388c788a
commit 86a6802d5d
42 changed files with 209 additions and 40 deletions

View File

@ -1,6 +1,11 @@
> 翻译:[numbbbbb](https://github.com/numbbbbb)
> 校对:[shinyzhu](https://github.com/shinyzhu), [stanzhai](https://github.com/stanzhai)
<link rel="stylesheet" href="../assets/css/xcode.css">
<script src="../assets/js/highlight.pack.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
# Swift 初见
---

View File

@ -1,6 +1,10 @@
> 翻译:[成都老码团队翻译组-Ayra](http://weibo.com/littlekok/)
> 校对:[成都老码团队翻译组-Oberyn](http://weibo.com/u/5241713117)
<link rel="stylesheet" href="../assets/css/xcode.css">
<script src="../assets/js/highlight.pack.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
# Swift 版本历史记录
---

View File

@ -1,6 +1,10 @@
> 翻译:[numbbbbb](https://github.com/numbbbbb), [lyuka](https://github.com/lyuka), [JaySurplus](https://github.com/JaySurplus)
> 校对:[lslxdx](https://github.com/lslxdx)
<link rel="stylesheet" href="../assets/css/xcode.css">
<script src="../assets/js/highlight.pack.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
# 基础部分
-----------------

View File

@ -3,6 +3,10 @@
> 校对:[EvilCome](https://github.com/Evilcome)
> 最终校对:[老码团队翻译组-Tyrion](http://weibo.com/u/5241713117)
<link rel="stylesheet" href="../assets/css/xcode.css">
<script src="../assets/js/highlight.pack.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
# 基本运算符
-----------------

View File

@ -1,6 +1,10 @@
> 翻译:[wh1100717](https://github.com/wh1100717)
> 校对:[Hawstein](https://github.com/Hawstein)
<link rel="stylesheet" href="../assets/css/xcode.css">
<script src="../assets/js/highlight.pack.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
# 字符串和字符Strings and Characters
-----------------

View File

@ -1,6 +1,10 @@
> 翻译:[zqp](https://github.com/zqp)
> 校对:[shinyzhu](https://github.com/shinyzhu), [stanzhai](https://github.com/stanzhai)
<link rel="stylesheet" href="../assets/css/xcode.css">
<script src="../assets/js/highlight.pack.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
# 集合类型 (Collection Types)
-----------------

View File

@ -1,6 +1,10 @@
> 翻译:[vclwei](https://github.com/vclwei), [coverxit](https://github.com/coverxit), [NicePiao](https://github.com/NicePiao)
> 校对:[coverxit](https://github.com/coverxit), [stanzhai](https://github.com/stanzhai)
<link rel="stylesheet" href="../assets/css/xcode.css">
<script src="../assets/js/highlight.pack.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
# 控制流
-----------------

View File

@ -1,6 +1,10 @@
> 翻译:[honghaoz](https://github.com/honghaoz)
> 校对:[LunaticM](https://github.com/LunaticM)
<link rel="stylesheet" href="../assets/css/xcode.css">
<script src="../assets/js/highlight.pack.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
# 函数Functions
-----------------

View File

@ -1,6 +1,10 @@
> 翻译:[wh1100717](https://github.com/wh1100717)
> 校对:[lyuka](https://github.com/lyuka)
<link rel="stylesheet" href="../assets/css/xcode.css">
<script src="../assets/js/highlight.pack.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
# 闭包Closures
-----------------

View File

@ -1,6 +1,10 @@
> 翻译:[yankuangshi](https://github.com/yankuangshi)
> 校对:[shinyzhu](https://github.com/shinyzhu)
<link rel="stylesheet" href="../assets/css/xcode.css">
<script src="../assets/js/highlight.pack.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
# 枚举Enumerations
---

View File

@ -1,6 +1,10 @@
> 翻译:[JaySurplus](https://github.com/JaySurplus)
> 校对:[sg552](https://github.com/sg552)
<link rel="stylesheet" href="../assets/css/xcode.css">
<script src="../assets/js/highlight.pack.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
# 类和结构体
本页包含内容:

View File

@ -1,6 +1,10 @@
> 翻译:[shinyzhu](https://github.com/shinyzhu)
> 校对:[pp-prog](https://github.com/pp-prog)
<link rel="stylesheet" href="../assets/css/xcode.css">
<script src="../assets/js/highlight.pack.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
# 属性 (Properties)
---

View File

@ -1,6 +1,10 @@
> 翻译:[pp-prog](https://github.com/pp-prog)
> 校对:[zqp](https://github.com/zqp)
<link rel="stylesheet" href="../assets/css/xcode.css">
<script src="../assets/js/highlight.pack.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
# 方法Methods
-----------------

View File

@ -1,6 +1,10 @@
> 翻译:[siemenliu](https://github.com/siemenliu)
> 校对:[zq54zquan](https://github.com/zq54zquan)
<link rel="stylesheet" href="../assets/css/xcode.css">
<script src="../assets/js/highlight.pack.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
# 下标脚本Subscripts
-----------------

View File

@ -1,6 +1,10 @@
> 翻译:[Hawstein](https://github.com/Hawstein)
> 校对:[menlongsheng](https://github.com/menlongsheng)
<link rel="stylesheet" href="../assets/css/xcode.css">
<script src="../assets/js/highlight.pack.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
# 继承Inheritance
-------------------

View File

@ -1,6 +1,10 @@
> 翻译:[lifedim](https://github.com/lifedim)
> 校对:[lifedim](https://github.com/lifedim)
<link rel="stylesheet" href="../assets/css/xcode.css">
<script src="../assets/js/highlight.pack.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
# 构造过程Initialization
-----------------

View File

@ -1,6 +1,10 @@
> 翻译:[bruce0505](https://github.com/bruce0505)
> 校对:[fd5788](https://github.com/fd5788)
<link rel="stylesheet" href="../assets/css/xcode.css">
<script src="../assets/js/highlight.pack.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
# 析构过程Deinitialization
---------------------------

View File

@ -1,6 +1,10 @@
> 翻译:[TimothyYe](https://github.com/TimothyYe)
> 校对:[Hawstein](https://github.com/Hawstein)
<link rel="stylesheet" href="../assets/css/xcode.css">
<script src="../assets/js/highlight.pack.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
# 自动引用计数
-----------------

View File

@ -1,6 +1,10 @@
> 翻译:[Jasonbroker](https://github.com/Jasonbroker)
> 校对:[numbbbbb](https://github.com/numbbbbb), [stanzhai](https://github.com/stanzhai)
<link rel="stylesheet" href="../assets/css/xcode.css">
<script src="../assets/js/highlight.pack.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
# Optional Chaining
-----------------

View File

@ -1,6 +1,10 @@
> 翻译:[xiehurricane](https://github.com/xiehurricane)
> 校对:[happyming](https://github.com/happyming)
<link rel="stylesheet" href="../assets/css/xcode.css">
<script src="../assets/js/highlight.pack.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
# 类型转换Type Casting
-----------------

View File

@ -1,6 +1,10 @@
> 翻译:[Lin-H](https://github.com/Lin-H)
> 校对:[shinyzhu](https://github.com/shinyzhu)
<link rel="stylesheet" href="../assets/css/xcode.css">
<script src="../assets/js/highlight.pack.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
# 嵌套类型
-----------------

View File

@ -1,6 +1,10 @@
> 翻译:[lyuka](https://github.com/lyuka)
> 校对:[Hawstein](https://github.com/Hawstein)
<link rel="stylesheet" href="../assets/css/xcode.css">
<script src="../assets/js/highlight.pack.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
#扩展Extensions
----

View File

@ -1,6 +1,10 @@
> 翻译:[geek5nan](https://github.com/geek5nan)
> 校对:[dabing1022](https://github.com/dabing1022)
<link rel="stylesheet" href="../assets/css/xcode.css">
<script src="../assets/js/highlight.pack.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
# 协议
-----------------

View File

@ -2,6 +2,10 @@
> 翻译:[takalard](https://github.com/takalard)
> 校对:[lifedim](https://github.com/lifedim)
<link rel="stylesheet" href="../assets/css/xcode.css">
<script src="../assets/js/highlight.pack.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
# 泛型
------

View File

@ -1,6 +1,10 @@
> 翻译:[JaceFu](http://www.devtalking.com/)
> 校对:[ChildhoodAndy](http://childhood.logdown.com)
<link rel="stylesheet" href="../assets/css/xcode.css">
<script src="../assets/js/highlight.pack.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
# 访问控制
------------------

View File

@ -1,6 +1,10 @@
> 翻译:[xielingwang](https://github.com/xielingwang)
> 校对:[numbbbbb](https://github.com/numbbbbb)
<link rel="stylesheet" href="../assets/css/xcode.css">
<script src="../assets/js/highlight.pack.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
# 高级运算符
-----------------

View File

@ -1,6 +1,10 @@
> 翻译:[dabing1022](https://github.com/dabing1022)
> 校对:[numbbbbb](https://github.com/numbbbbb)
<link rel="stylesheet" href="../assets/css/xcode.css">
<script src="../assets/js/highlight.pack.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
# 关于语言附注
-----------------

View File

@ -1,6 +1,10 @@
> 翻译:[superkam](https://github.com/superkam)
> 校对:[numbbbbb](https://github.com/numbbbbb)
<link rel="stylesheet" href="../assets/css/xcode.css">
<script src="../assets/js/highlight.pack.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
# 词法结构
-----------------

View File

@ -1,6 +1,10 @@
> 翻译:[lyuka](https://github.com/lyuka)
> 校对:[numbbbbb](https://github.com/numbbbbb), [stanzhai](https://github.com/stanzhai)
<link rel="stylesheet" href="../assets/css/xcode.css">
<script src="../assets/js/highlight.pack.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
# 类型Types
-----------------

View File

@ -1,6 +1,10 @@
> 翻译:[sg552](https://github.com/sg552)
> 校对:[numbbbbb](https://github.com/numbbbbb), [stanzhai](https://github.com/stanzhai)
<link rel="stylesheet" href="../assets/css/xcode.css">
<script src="../assets/js/highlight.pack.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
# 表达式Expressions
-----------------

View File

@ -1,6 +1,10 @@
> 翻译:[marsprince](https://github.com/marsprince)
> 校对:[numbbbbb](https://github.com/numbbbbb), [stanzhai](https://github.com/stanzhai)
<link rel="stylesheet" href="../assets/css/xcode.css">
<script src="../assets/js/highlight.pack.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
# 声明
-----------------

View File

@ -1,6 +1,10 @@
> 翻译:[Hawstein](https://github.com/Hawstein)
> 校对:[numbbbbb](https://github.com/numbbbbb), [stanzhai](https://github.com/stanzhai)
<link rel="stylesheet" href="../assets/css/xcode.css">
<script src="../assets/js/highlight.pack.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
# 特性
-----------------

View File

@ -1,6 +1,10 @@
> 翻译:[honghaoz](https://github.com/honghaoz)
> 校对:[numbbbbb](https://github.com/numbbbbb), [stanzhai](https://github.com/stanzhai)
<link rel="stylesheet" href="../assets/css/xcode.css">
<script src="../assets/js/highlight.pack.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
# 模式Patterns
-----------------

View File

@ -1,6 +1,10 @@
> 翻译:[fd5788](https://github.com/fd5788)
> 校对:[yankuangshi](https://github.com/yankuangshi), [stanzhai](https://github.com/stanzhai)
<link rel="stylesheet" href="../assets/css/xcode.css">
<script src="../assets/js/highlight.pack.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
# 泛型参数
---------

View File

@ -1,6 +1,10 @@
> 翻译:[stanzhai](https://github.com/stanzhai)
> 校对:[xielingwang](https://github.com/xielingwang)
<link rel="stylesheet" href="../assets/css/xcode.css">
<script src="../assets/js/highlight.pack.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
# 语法总结
_________________

View File

@ -1,6 +1,10 @@
> 翻译:[coverxit](https://github.com/coverxit)
> 校对:[numbbbbb](https://github.com/numbbbbb), [coverxit](https://github.com/coverxit), [stanzhai](https://github.com/stanzhai)
<link rel="stylesheet" href="../assets/css/xcode.css">
<script src="../assets/js/highlight.pack.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
# 语句
-----------------

View File

@ -1,6 +1,10 @@
> 翻译:[老码团队翻译组-Arya](http://weibo.com/littlekok/)
> 校对:[老码团队翻译组-Oberyn](http://weibo.com/u/5241713117)
<link rel="stylesheet" href="../assets/css/xcode.css">
<script src="../assets/js/highlight.pack.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
# Access Control 权限控制的黑与白
如果您之前没有接触过权限控制,先来听一个小故事:

View File

@ -1,6 +1,10 @@
> 翻译:[老码团队翻译组-Tyrion](http://weibo.com/u/5241713117)
> 校对:[老码团队翻译组-Oberyn](http://weibo.com/u/5241713117)
<link rel="stylesheet" href="../assets/css/xcode.css">
<script src="../assets/js/highlight.pack.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
# 造个类型不是梦-白话Swift类型创建
-----------------

View File

@ -1,6 +1,10 @@
> 翻译:[老码团队翻译组-Arya](http://weibo.com/littlekok/)
> 校对:[老码团队翻译组-Jame](http://weibo.com/u/5241713117)
<link rel="stylesheet" href="../assets/css/xcode.css">
<script src="../assets/js/highlight.pack.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
# WWDC里面的那个“大炮打气球”
![Ballon playground](https://devimages.apple.com.edgekey.net/swift/images/swift-screenshot.jpg)

View File

@ -1,6 +1,10 @@
> 翻译:[老码团队翻译组-Relly](http://weibo.com/penguinliong/)
> 校对:[老码团队翻译组-Tyrion](http://weibo.com/u/5241713117)
<link rel="stylesheet" href="../assets/css/xcode.css">
<script src="../assets/js/highlight.pack.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
# Swift与C语言指针友好合作
-----------------

View File

@ -1,6 +1,10 @@
> 翻译:[老码团队翻译组-Arya](http://weibo.com/littlekok/)
> 校对:[老码团队翻译组-Jame](http://weibo.com/u/5241713117)
<link rel="stylesheet" href="../assets/css/xcode.css">
<script src="../assets/js/highlight.pack.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
# Swift里的值类型与引用类型
-----------------

View File

@ -1,6 +1,10 @@
> 翻译:[老码团队翻译组-Arya](http://weibo.com/littlekok/)
> 校对:[老码团队翻译组-Jame](http://weibo.com/u/5241713117)
<link rel="stylesheet" href="../assets/css/xcode.css">
<script src="../assets/js/highlight.pack.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
# 访问控制和protected
-----------------