Skip to content

Commit

Permalink
add highlight
Browse files Browse the repository at this point in the history
  • Loading branch information
numbbbbb committed Jun 12, 2014
1 parent ba0cf26 commit d1434ec
Show file tree
Hide file tree
Showing 42 changed files with 180 additions and 171 deletions.
10 changes: 5 additions & 5 deletions chapter1/01_swift.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@



<div class="book" data-level="1.1" data-basepath=".." data-revision="1402556298428">
<div class="book" data-level="1.1" data-basepath=".." data-revision="1402565541342">
<div class="book-header">
<!-- Actions Left -->
<a href="#" class="btn pull-left toggle-summary" aria-label="Toggle summary"><i class="fa fa-align-justify"></i></a>
Expand Down Expand Up @@ -491,7 +491,7 @@ <h1>
<a href="http://www.gitbook.io/" target="blank" class="gitbook-link">Generated using GitBook</a>
</li>
<li style="margin-left:15%;"> <iframe src="http://ghbtns.com/github-btn.html?user=numbbbbb&repo=the-swift-programming-language-in-chinese&type=watch&count=true&size=large"
allowtransparency="true" frameborder="0" scrolling="0" width="170" height="30"></iframe></li>
allowtransparency="true" frameborder="0" scrolling="0" width="170" height="30"></iframe></li><li><p style="padding-left:5px;padding-right:5px;">翻译无任何商业目的,仅供内部学习交流使用!</p></li><li><script src="http://s19.cnzz.com/z_stat.php?id=1000480711&web_id=1000480711" language="JavaScript"></script></li>
</ul>
</div>

Expand Down Expand Up @@ -587,7 +587,7 @@ <h1>

<div class="page-inner">

<section class="normal" id="section-gitbook_116">
<section class="normal" id="section-gitbook_4">

<blockquote>
<p>翻译:numbbbbb</p>
Expand All @@ -599,7 +599,7 @@ <h1 id="-swift">关于 Swift</h1>
<p>Swift 的开发从很久之前就开始了。为了给 Swift 打好基础,苹果公司改进了编译器,调试器和框架结构。我们使用自动引用计数(Automatic Reference Counting, ARC)来简化内存管理。我们在 Foundation 和 Cocoa的基础上构建框架栈并将其标准化。Objective-C 本身支持块、集合语法和模块,所以框架可以轻松支持现代编程语言技术。正是得益于这些基础工作,我们现在才能发布这样一个用于未来苹果软件开发的新语言。</p>
<p>Objective-C 开发者对 Swift 并不会感到陌生。它采用了 Objective-C 的命名参数以及动态对象模型,可以无缝对接到现有的 Cocoa 框架,并且可以兼容 Objective-C 代码。在此基础之上,Swift 还有许多新特性并且支持过程式编程和面向对象编程。</p>
<p>Swift 对于初学者来说也很友好。它是第一个既满足工业标准又像脚本语言一样充满表现力和趣味的编程语言。它支持代码预览,这个革命性的特性可以允许程序员在不编译和运行应用程序的前提下运行 Swift 代码并实时查看结果。</p>
<p>Swift 将现代编程语言的精华和苹果工程师文化的智慧结合了起来。编译器对性能进行了优化,编程语言对开发进行了优化,两者互不干扰,鱼与熊掌兼得。Swift 既可以用于开发“hello, world”这样的小程序,也可以用于开发一套完整的操作系统。所有的这些特性让 Swift 对于开发者和苹果来说都是一项值得的投资。</p>
<p>Swift 将现代编程语言的精华和苹果工程师文化的智慧结合了起来。编译器对性能进行了优化,编程语言对开发进行了优化,两者互不干扰,鱼与熊掌兼得。Swift 既可以用于开发 “hello, world” 这样的小程序,也可以用于开发一套完整的操作系统。所有的这些特性让 Swift 对于开发者和苹果来说都是一项值得的投资。</p>
<p>用 Swift 编写 iOS 和 OS X 应用将是一场美妙的体验,Swift 之后也会不断开发新特性和兼容性。我们对 Swift 充满信心,你还在等什么!</p>


Expand Down Expand Up @@ -646,6 +646,6 @@ <h1 id="-swift">关于 Swift</h1>
</script>


<script src="http://s19.cnzz.com/z_stat.php?id=1000480711&web_id=1000480711" language="JavaScript"></script></body>
<script src="http://yandex.st/highlightjs/8.0/styles/default.min.css"></script><script src="http://yandex.st/highlightjs/8.0/highlight.min.js"></script><script text="javascript">$('pre code').each(function(i, block) {hljs.highlightBlock(block);});</script></body>

</html>
11 changes: 6 additions & 5 deletions chapter1/02_a_swift_tour.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@



<div class="book" data-level="1.2" data-basepath=".." data-revision="1402556298428">
<div class="book" data-level="1.2" data-basepath=".." data-revision="1402565541342">
<div class="book-header">
<!-- Actions Left -->
<a href="#" class="btn pull-left toggle-summary" aria-label="Toggle summary"><i class="fa fa-align-justify"></i></a>
Expand Down Expand Up @@ -491,7 +491,7 @@ <h1>
<a href="http://www.gitbook.io/" target="blank" class="gitbook-link">Generated using GitBook</a>
</li>
<li style="margin-left:15%;"> <iframe src="http://ghbtns.com/github-btn.html?user=numbbbbb&repo=the-swift-programming-language-in-chinese&type=watch&count=true&size=large"
allowtransparency="true" frameborder="0" scrolling="0" width="170" height="30"></iframe></li>
allowtransparency="true" frameborder="0" scrolling="0" width="170" height="30"></iframe></li><li><p style="padding-left:5px;padding-right:5px;">翻译无任何商业目的,仅供内部学习交流使用!</p></li><li><script src="http://s19.cnzz.com/z_stat.php?id=1000480711&web_id=1000480711" language="JavaScript"></script></li>
</ul>
</div>

Expand Down Expand Up @@ -587,7 +587,7 @@ <h1>

<div class="page-inner">

<section class="normal" id="section-gitbook_118">
<section class="normal" id="section-gitbook_6">

<blockquote>
<p>翻译:numbbbbb
Expand Down Expand Up @@ -822,7 +822,8 @@ <h2 id="-">函数和闭包</h2>
<p>重写闭包,对所有奇数返回 0.</p>
</blockquote>
<p>有很多种创建闭包的方法。如果一个闭包的类型已知,比如作为一个回调函数,你可以忽略参数的类型和返回值。单个语句闭包会把它语句的值当做结果返回。</p>
<p>你可以通过参数位置而不是参数名字来引用参数——这个方法在非常短的闭包中非常有用。当一个闭包作为最后一个参数传给一个函数的时候,它可以直接跟在括号后面。</p>
<pre><code>numbers.map({ number in 3 * number })
</code></pre><p>你可以通过参数位置而不是参数名字来引用参数——这个方法在非常短的闭包中非常有用。当一个闭包作为最后一个参数传给一个函数的时候,它可以直接跟在括号后面。</p>
<pre><code>sort([1, 5, 3, 12, 2]) { $0 &gt; $1 }
</code></pre><p><a name="objects_and_classes"></a></p>
<h2 id="-">对象和类</h2>
Expand Down Expand Up @@ -1178,6 +1179,6 @@ <h2 id="-">泛型</h2>
</script>


<script src="http://s19.cnzz.com/z_stat.php?id=1000480711&web_id=1000480711" language="JavaScript"></script></body>
<script src="http://yandex.st/highlightjs/8.0/styles/default.min.css"></script><script src="http://yandex.st/highlightjs/8.0/highlight.min.js"></script><script text="javascript">$('pre code').each(function(i, block) {hljs.highlightBlock(block);});</script></body>

</html>
8 changes: 4 additions & 4 deletions chapter1/chapter1.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@



<div class="book" data-level="1" data-basepath=".." data-revision="1402556298428">
<div class="book" data-level="1" data-basepath=".." data-revision="1402565541342">
<div class="book-header">
<!-- Actions Left -->
<a href="#" class="btn pull-left toggle-summary" aria-label="Toggle summary"><i class="fa fa-align-justify"></i></a>
Expand Down Expand Up @@ -491,7 +491,7 @@ <h1>
<a href="http://www.gitbook.io/" target="blank" class="gitbook-link">Generated using GitBook</a>
</li>
<li style="margin-left:15%;"> <iframe src="http://ghbtns.com/github-btn.html?user=numbbbbb&repo=the-swift-programming-language-in-chinese&type=watch&count=true&size=large"
allowtransparency="true" frameborder="0" scrolling="0" width="170" height="30"></iframe></li>
allowtransparency="true" frameborder="0" scrolling="0" width="170" height="30"></iframe></li><li><p style="padding-left:5px;padding-right:5px;">翻译无任何商业目的,仅供内部学习交流使用!</p></li><li><script src="http://s19.cnzz.com/z_stat.php?id=1000480711&web_id=1000480711" language="JavaScript"></script></li>
</ul>
</div>

Expand Down Expand Up @@ -587,7 +587,7 @@ <h1>

<div class="page-inner">

<section class="normal" id="section-gitbook_120">
<section class="normal" id="section-gitbook_8">

<h1 id="-swift">欢迎使用 Swift</h1>
<p>在本章中您将了解 Swift 的特性和开发历史,并对 Swift 有一个初步的了解。</p>
Expand Down Expand Up @@ -636,6 +636,6 @@ <h1 id="-swift">欢迎使用 Swift</h1>
</script>


<script src="http://s19.cnzz.com/z_stat.php?id=1000480711&web_id=1000480711" language="JavaScript"></script></body>
<script src="http://yandex.st/highlightjs/8.0/styles/default.min.css"></script><script src="http://yandex.st/highlightjs/8.0/highlight.min.js"></script><script text="javascript">$('pre code').each(function(i, block) {hljs.highlightBlock(block);});</script></body>

</html>
8 changes: 4 additions & 4 deletions chapter2/01_The_Basics.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@



<div class="book" data-level="2.1" data-basepath=".." data-revision="1402556298428">
<div class="book" data-level="2.1" data-basepath=".." data-revision="1402565541342">
<div class="book-header">
<!-- Actions Left -->
<a href="#" class="btn pull-left toggle-summary" aria-label="Toggle summary"><i class="fa fa-align-justify"></i></a>
Expand Down Expand Up @@ -491,7 +491,7 @@ <h1>
<a href="http://www.gitbook.io/" target="blank" class="gitbook-link">Generated using GitBook</a>
</li>
<li style="margin-left:15%;"> <iframe src="http://ghbtns.com/github-btn.html?user=numbbbbb&repo=the-swift-programming-language-in-chinese&type=watch&count=true&size=large"
allowtransparency="true" frameborder="0" scrolling="0" width="170" height="30"></iframe></li>
allowtransparency="true" frameborder="0" scrolling="0" width="170" height="30"></iframe></li><li><p style="padding-left:5px;padding-right:5px;">翻译无任何商业目的,仅供内部学习交流使用!</p></li><li><script src="http://s19.cnzz.com/z_stat.php?id=1000480711&web_id=1000480711" language="JavaScript"></script></li>
</ul>
</div>

Expand Down Expand Up @@ -587,7 +587,7 @@ <h1>

<div class="page-inner">

<section class="normal" id="section-gitbook_123">
<section class="normal" id="section-gitbook_9">

<blockquote>
<p>翻译:numbbbbb, lyuka, JaySurplus</p>
Expand Down Expand Up @@ -1060,6 +1060,6 @@ <h3 id="-">使用断言进行调试</h3>
</script>


<script src="http://s19.cnzz.com/z_stat.php?id=1000480711&web_id=1000480711" language="JavaScript"></script></body>
<script src="http://yandex.st/highlightjs/8.0/styles/default.min.css"></script><script src="http://yandex.st/highlightjs/8.0/highlight.min.js"></script><script text="javascript">$('pre code').each(function(i, block) {hljs.highlightBlock(block);});</script></body>

</html>
8 changes: 4 additions & 4 deletions chapter2/02_Basic_Operators.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@



<div class="book" data-level="2.2" data-basepath=".." data-revision="1402556298428">
<div class="book" data-level="2.2" data-basepath=".." data-revision="1402565541342">
<div class="book-header">
<!-- Actions Left -->
<a href="#" class="btn pull-left toggle-summary" aria-label="Toggle summary"><i class="fa fa-align-justify"></i></a>
Expand Down Expand Up @@ -491,7 +491,7 @@ <h1>
<a href="http://www.gitbook.io/" target="blank" class="gitbook-link">Generated using GitBook</a>
</li>
<li style="margin-left:15%;"> <iframe src="http://ghbtns.com/github-btn.html?user=numbbbbb&repo=the-swift-programming-language-in-chinese&type=watch&count=true&size=large"
allowtransparency="true" frameborder="0" scrolling="0" width="170" height="30"></iframe></li>
allowtransparency="true" frameborder="0" scrolling="0" width="170" height="30"></iframe></li><li><p style="padding-left:5px;padding-right:5px;">翻译无任何商业目的,仅供内部学习交流使用!</p></li><li><script src="http://s19.cnzz.com/z_stat.php?id=1000480711&web_id=1000480711" language="JavaScript"></script></li>
</ul>
</div>

Expand Down Expand Up @@ -587,7 +587,7 @@ <h1>

<div class="page-inner">

<section class="normal" id="section-gitbook_144">
<section class="normal" id="section-gitbook_32">

<blockquote>
<p>翻译:xielingwang</p>
Expand Down Expand Up @@ -950,6 +950,6 @@ <h3 id="-">使用括号来明确优先级</h3>
</script>


<script src="http://s19.cnzz.com/z_stat.php?id=1000480711&web_id=1000480711" language="JavaScript"></script></body>
<script src="http://yandex.st/highlightjs/8.0/styles/default.min.css"></script><script src="http://yandex.st/highlightjs/8.0/highlight.min.js"></script><script text="javascript">$('pre code').each(function(i, block) {hljs.highlightBlock(block);});</script></body>

</html>
8 changes: 4 additions & 4 deletions chapter2/03_Strings_and_Characters.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@



<div class="book" data-level="2.3" data-basepath=".." data-revision="1402556298428">
<div class="book" data-level="2.3" data-basepath=".." data-revision="1402565541342">
<div class="book-header">
<!-- Actions Left -->
<a href="#" class="btn pull-left toggle-summary" aria-label="Toggle summary"><i class="fa fa-align-justify"></i></a>
Expand Down Expand Up @@ -491,7 +491,7 @@ <h1>
<a href="http://www.gitbook.io/" target="blank" class="gitbook-link">Generated using GitBook</a>
</li>
<li style="margin-left:15%;"> <iframe src="http://ghbtns.com/github-btn.html?user=numbbbbb&repo=the-swift-programming-language-in-chinese&type=watch&count=true&size=large"
allowtransparency="true" frameborder="0" scrolling="0" width="170" height="30"></iframe></li>
allowtransparency="true" frameborder="0" scrolling="0" width="170" height="30"></iframe></li><li><p style="padding-left:5px;padding-right:5px;">翻译无任何商业目的,仅供内部学习交流使用!</p></li><li><script src="http://s19.cnzz.com/z_stat.php?id=1000480711&web_id=1000480711" language="JavaScript"></script></li>
</ul>
</div>

Expand Down Expand Up @@ -587,7 +587,7 @@ <h1>

<div class="page-inner">

<section class="normal" id="section-gitbook_125">
<section class="normal" id="section-gitbook_13">

<blockquote>
<p>翻译:wh1100717</p>
Expand Down Expand Up @@ -927,6 +927,6 @@ <h3 id="unicode-unicode-scalars-">Unicode 标量 (Unicode Scalars)</h3>
</script>


<script src="http://s19.cnzz.com/z_stat.php?id=1000480711&web_id=1000480711" language="JavaScript"></script></body>
<script src="http://yandex.st/highlightjs/8.0/styles/default.min.css"></script><script src="http://yandex.st/highlightjs/8.0/highlight.min.js"></script><script text="javascript">$('pre code').each(function(i, block) {hljs.highlightBlock(block);});</script></body>

</html>
8 changes: 4 additions & 4 deletions chapter2/04_Collection_Types.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@



<div class="book" data-level="2.4" data-basepath=".." data-revision="1402556298428">
<div class="book" data-level="2.4" data-basepath=".." data-revision="1402565541342">
<div class="book-header">
<!-- Actions Left -->
<a href="#" class="btn pull-left toggle-summary" aria-label="Toggle summary"><i class="fa fa-align-justify"></i></a>
Expand Down Expand Up @@ -491,7 +491,7 @@ <h1>
<a href="http://www.gitbook.io/" target="blank" class="gitbook-link">Generated using GitBook</a>
</li>
<li style="margin-left:15%;"> <iframe src="http://ghbtns.com/github-btn.html?user=numbbbbb&repo=the-swift-programming-language-in-chinese&type=watch&count=true&size=large"
allowtransparency="true" frameborder="0" scrolling="0" width="170" height="30"></iframe></li>
allowtransparency="true" frameborder="0" scrolling="0" width="170" height="30"></iframe></li><li><p style="padding-left:5px;padding-right:5px;">翻译无任何商业目的,仅供内部学习交流使用!</p></li><li><script src="http://s19.cnzz.com/z_stat.php?id=1000480711&web_id=1000480711" language="JavaScript"></script></li>
</ul>
</div>

Expand Down Expand Up @@ -587,7 +587,7 @@ <h1>

<div class="page-inner">

<section class="normal" id="section-gitbook_127">
<section class="normal" id="section-gitbook_15">

<blockquote>
<p>翻译:zqp</p>
Expand Down Expand Up @@ -886,6 +886,6 @@ <h2 id="-">集合的可变性</h2>
</script>


<script src="http://s19.cnzz.com/z_stat.php?id=1000480711&web_id=1000480711" language="JavaScript"></script></body>
<script src="http://yandex.st/highlightjs/8.0/styles/default.min.css"></script><script src="http://yandex.st/highlightjs/8.0/highlight.min.js"></script><script text="javascript">$('pre code').each(function(i, block) {hljs.highlightBlock(block);});</script></body>

</html>
8 changes: 4 additions & 4 deletions chapter2/05_Control_Flow.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@



<div class="book" data-level="2.5" data-basepath=".." data-revision="1402556298428">
<div class="book" data-level="2.5" data-basepath=".." data-revision="1402565541342">
<div class="book-header">
<!-- Actions Left -->
<a href="#" class="btn pull-left toggle-summary" aria-label="Toggle summary"><i class="fa fa-align-justify"></i></a>
Expand Down Expand Up @@ -491,7 +491,7 @@ <h1>
<a href="http://www.gitbook.io/" target="blank" class="gitbook-link">Generated using GitBook</a>
</li>
<li style="margin-left:15%;"> <iframe src="http://ghbtns.com/github-btn.html?user=numbbbbb&repo=the-swift-programming-language-in-chinese&type=watch&count=true&size=large"
allowtransparency="true" frameborder="0" scrolling="0" width="170" height="30"></iframe></li>
allowtransparency="true" frameborder="0" scrolling="0" width="170" height="30"></iframe></li><li><p style="padding-left:5px;padding-right:5px;">翻译无任何商业目的,仅供内部学习交流使用!</p></li><li><script src="http://s19.cnzz.com/z_stat.php?id=1000480711&web_id=1000480711" language="JavaScript"></script></li>
</ul>
</div>

Expand Down Expand Up @@ -587,7 +587,7 @@ <h1>

<div class="page-inner">

<section class="normal" id="section-gitbook_129">
<section class="normal" id="section-gitbook_17">

<blockquote>
<p>翻译:vclwei, coverxit, NicePiao</p>
Expand Down Expand Up @@ -1190,6 +1190,6 @@ <h3 id="-labeled-statements-">带标签的语句(Labeled Statements)</h3>
</script>


<script src="http://s19.cnzz.com/z_stat.php?id=1000480711&web_id=1000480711" language="JavaScript"></script></body>
<script src="http://yandex.st/highlightjs/8.0/styles/default.min.css"></script><script src="http://yandex.st/highlightjs/8.0/highlight.min.js"></script><script text="javascript">$('pre code').each(function(i, block) {hljs.highlightBlock(block);});</script></body>

</html>
Loading

0 comments on commit d1434ec

Please sign in to comment.