mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 07:12:31 +03:00
Review docs for added rouge lexers and update those with new highlighters
This commit is contained in:
parent
c0d8a18b08
commit
eab554a7a7
@ -11,7 +11,7 @@ As one of the succeeders of JavaScript, CoffeeScript tries its best to output re
|
|||||||
|
|
||||||
See also [the CoffeeScript website](http://coffeescript.org/), which has a complete tutorial on CoffeeScript.
|
See also [the CoffeeScript website](http://coffeescript.org/), which has a complete tutorial on CoffeeScript.
|
||||||
|
|
||||||
``` coffeescript
|
```coffeescript
|
||||||
# CoffeeScript is a hipster language.
|
# CoffeeScript is a hipster language.
|
||||||
# It goes with the trends of many modern languages.
|
# It goes with the trends of many modern languages.
|
||||||
# So comments are like Ruby and Python, they use number symbols.
|
# So comments are like Ruby and Python, they use number symbols.
|
||||||
|
@ -17,7 +17,7 @@ Another popular and recent book is
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
```scheme
|
```common_lisp
|
||||||
|
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
;;; 0. Syntax
|
;;; 0. Syntax
|
||||||
|
@ -14,7 +14,7 @@ fácilmente a HTML (y, actualmente, otros formatos también).
|
|||||||
¡Denme todo la retroalimentación que quieran! / ¡Sientanse en la libertad de hacer forks o pull requests!
|
¡Denme todo la retroalimentación que quieran! / ¡Sientanse en la libertad de hacer forks o pull requests!
|
||||||
|
|
||||||
|
|
||||||
```
|
```markdown
|
||||||
<!-- Markdown está basado en HTML, así que cualquier archivo HTML es Markdown
|
<!-- Markdown está basado en HTML, así que cualquier archivo HTML es Markdown
|
||||||
válido, eso significa que podemos usar elementos HTML en Markdown como, por
|
válido, eso significa que podemos usar elementos HTML en Markdown como, por
|
||||||
ejemplo, el comentario y no serán afectados por un parseador Markdown. Aún
|
ejemplo, el comentario y no serán afectados por un parseador Markdown. Aún
|
||||||
|
@ -14,7 +14,7 @@ lang: fr-fr
|
|||||||
|
|
||||||
L'Objective-C est un langage de programmation orienté objet réflexif principalement utilisé par Apple pour les systèmes d'exploitations Mac OS X et iOS et leurs frameworks respectifs, Cocoa et Cocoa Touch.
|
L'Objective-C est un langage de programmation orienté objet réflexif principalement utilisé par Apple pour les systèmes d'exploitations Mac OS X et iOS et leurs frameworks respectifs, Cocoa et Cocoa Touch.
|
||||||
|
|
||||||
```cpp
|
```objective_c
|
||||||
// Les commentaires sur une seule ligne commencent par //
|
// Les commentaires sur une seule ligne commencent par //
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -14,7 +14,7 @@ R は統計計算用の言語です。
|
|||||||
データの取得やクリーニング、統計処理やグラフ作成をするために便利な、たくさんのライブラリがあります。また、LaTeX文書からRコマンドを呼び出すこともできます
|
データの取得やクリーニング、統計処理やグラフ作成をするために便利な、たくさんのライブラリがあります。また、LaTeX文書からRコマンドを呼び出すこともできます
|
||||||
|
|
||||||
|
|
||||||
```python
|
```r
|
||||||
# コメント行は、#で開始します
|
# コメント行は、#で開始します
|
||||||
|
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@ Markdown was created by John Gruber in 2004. It's meant to be an easy to read an
|
|||||||
Give me as much feedback as you want! / Feel free to fork and pull request!
|
Give me as much feedback as you want! / Feel free to fork and pull request!
|
||||||
|
|
||||||
|
|
||||||
```
|
```markdown
|
||||||
<!-- Markdown is a superset of HTML, so any HTML file is valid Markdown, that
|
<!-- Markdown is a superset of HTML, so any HTML file is valid Markdown, that
|
||||||
means we can use HTML elements in Markdown, such as the comment element, and
|
means we can use HTML elements in Markdown, such as the comment element, and
|
||||||
they won't be affected by a markdown parser. However, if you create an HTML
|
they won't be affected by a markdown parser. However, if you create an HTML
|
||||||
|
@ -12,7 +12,7 @@ filename: LearnObjectiveC.m
|
|||||||
Objective-C is the main programming language used by Apple for the OS X and iOS operating systems and their respective frameworks, Cocoa and Cocoa Touch.
|
Objective-C is the main programming language used by Apple for the OS X and iOS operating systems and their respective frameworks, Cocoa and Cocoa Touch.
|
||||||
It is a general-purpose, object-oriented programming language that adds Smalltalk-style messaging to the C programming language.
|
It is a general-purpose, object-oriented programming language that adds Smalltalk-style messaging to the C programming language.
|
||||||
|
|
||||||
```cpp
|
```objective_c
|
||||||
// Single-line comments start with //
|
// Single-line comments start with //
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -14,7 +14,7 @@ escrever sintaxe que converte facilmente em HTML (hoje, suporta outros formatos
|
|||||||
Dê-me feedback tanto quanto você quiser! / Sinta-se livre para a garfar (fork) e
|
Dê-me feedback tanto quanto você quiser! / Sinta-se livre para a garfar (fork) e
|
||||||
puxar o projeto (pull request)
|
puxar o projeto (pull request)
|
||||||
|
|
||||||
```
|
```markdown
|
||||||
<!-- Markdown é um superconjunto do HTML, de modo que qualquer arvquivo HTML é
|
<!-- Markdown é um superconjunto do HTML, de modo que qualquer arvquivo HTML é
|
||||||
um arquivo Markdown válido, isso significa que nós podemos usar elementos HTML
|
um arquivo Markdown válido, isso significa que nós podemos usar elementos HTML
|
||||||
em Markdown, como o elemento de comentário, e eles não serão afetados pelo analisador
|
em Markdown, como o elemento de comentário, e eles não serão afetados pelo analisador
|
||||||
|
@ -8,7 +8,7 @@ filename: learnr.r
|
|||||||
|
|
||||||
R is a statistical computing language. It has lots of libraries for uploading and cleaning data sets, running statistical procedures, and making graphs. You can also run `R` commands within a LaTeX document.
|
R is a statistical computing language. It has lots of libraries for uploading and cleaning data sets, running statistical procedures, and making graphs. You can also run `R` commands within a LaTeX document.
|
||||||
|
|
||||||
```python
|
```r
|
||||||
|
|
||||||
# Comments start with number symbols.
|
# Comments start with number symbols.
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@ Objective-C — компилируемый объектно-ориентиров
|
|||||||
построенный на основе языка Си и парадигм Smalltalk.
|
построенный на основе языка Си и парадигм Smalltalk.
|
||||||
В частности, объектная модель построена в стиле Smalltalk — то есть объектам посылаются сообщения.
|
В частности, объектная модель построена в стиле Smalltalk — то есть объектам посылаются сообщения.
|
||||||
|
|
||||||
```cpp
|
```objective_c
|
||||||
// Однострочный комментарий
|
// Однострочный комментарий
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -9,7 +9,7 @@ filename: learn.scala
|
|||||||
|
|
||||||
Scala - the scalable language
|
Scala - the scalable language
|
||||||
|
|
||||||
```cpp
|
```scala
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Set yourself up:
|
Set yourself up:
|
||||||
|
@ -12,7 +12,7 @@ The official [Swift Programming Language](https://itunes.apple.com/us/book/swift
|
|||||||
|
|
||||||
See also Apple's [getting started guide](https://developer.apple.com/library/prerelease/ios/referencelibrary/GettingStarted/LandingPage/index.html), which has a complete tutorial on Swift.
|
See also Apple's [getting started guide](https://developer.apple.com/library/prerelease/ios/referencelibrary/GettingStarted/LandingPage/index.html), which has a complete tutorial on Swift.
|
||||||
|
|
||||||
```js
|
```swift
|
||||||
//
|
//
|
||||||
// MARK: Basics
|
// MARK: Basics
|
||||||
//
|
//
|
||||||
|
@ -14,7 +14,7 @@ kendi çatıları olan Cocoa ve Cocoa Touch için kullanılan bir programlama di
|
|||||||
Genel açamlı, object-oriented bir yapıya sahip programlama dilidir. C
|
Genel açamlı, object-oriented bir yapıya sahip programlama dilidir. C
|
||||||
programlama diline Smalltalk stilinde mesajlaşma ekler.
|
programlama diline Smalltalk stilinde mesajlaşma ekler.
|
||||||
|
|
||||||
```cpp
|
```objective_c
|
||||||
// Tek satır yorum // işaretleri ile başlar
|
// Tek satır yorum // işaretleri ile başlar
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -13,7 +13,7 @@ This article will focus only on TypeScript extra syntax, as oposed to [JavaScrip
|
|||||||
|
|
||||||
To test TypeScript's compiler, head to the [Playground] (http://www.typescriptlang.org/Playground) where you will be able to type code, have auto completion and directly see the emitted JavaScript.
|
To test TypeScript's compiler, head to the [Playground] (http://www.typescriptlang.org/Playground) where you will be able to type code, have auto completion and directly see the emitted JavaScript.
|
||||||
|
|
||||||
```ts
|
```js
|
||||||
//There are 3 basic types in TypeScript
|
//There are 3 basic types in TypeScript
|
||||||
var isDone: boolean = false;
|
var isDone: boolean = false;
|
||||||
var lines: number = 42;
|
var lines: number = 42;
|
||||||
|
@ -12,7 +12,7 @@ filename: LearnObjectiveC-vi.m
|
|||||||
Objective-C là ngôn ngữ lập trình chính được sử dụng bởi Apple cho các hệ điều hành OS X, iOS và các framework tương ứng của họ, Cocoa và Cocoa Touch.
|
Objective-C là ngôn ngữ lập trình chính được sử dụng bởi Apple cho các hệ điều hành OS X, iOS và các framework tương ứng của họ, Cocoa và Cocoa Touch.
|
||||||
Nó là một ngôn ngữ lập trình mục đích tổng quát, hướng đối tượng có bổ sung thêm kiểu truyền thông điệp giống Smalltalk vào ngôn ngữ lập trình C.
|
Nó là một ngôn ngữ lập trình mục đích tổng quát, hướng đối tượng có bổ sung thêm kiểu truyền thông điệp giống Smalltalk vào ngôn ngữ lập trình C.
|
||||||
|
|
||||||
```cpp
|
```objective_c
|
||||||
// Chú thích dòng đơn bắt đầu với //
|
// Chú thích dòng đơn bắt đầu với //
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -17,7 +17,7 @@ ANSI Common Lisp 是一个广泛通用于各个工业领域的、支持多种范
|
|||||||
另外还有一本热门的近期出版的
|
另外还有一本热门的近期出版的
|
||||||
[Land of Lisp](http://landoflisp.com/).
|
[Land of Lisp](http://landoflisp.com/).
|
||||||
|
|
||||||
```scheme
|
```common-lisp
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
;;; 0. 语法
|
;;; 0. 语法
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
@ -13,7 +13,7 @@ Markdown 由 John Gruber 于 2004年创立. 它旨在成为一门容易读写的
|
|||||||
欢迎您多多反馈以及分支和请求合并。
|
欢迎您多多反馈以及分支和请求合并。
|
||||||
|
|
||||||
|
|
||||||
```
|
```markdown
|
||||||
<!-- Markdown 是 HTML 的父集,所以任何 HTML 文件都是有效的 Markdown。
|
<!-- Markdown 是 HTML 的父集,所以任何 HTML 文件都是有效的 Markdown。
|
||||||
这意味着我们可以在 Markdown 里使用任何 HTML 元素,比如注释元素,
|
这意味着我们可以在 Markdown 里使用任何 HTML 元素,比如注释元素,
|
||||||
且不会被 Markdown 解析器所影响。不过如果你在 Markdown 文件内创建了 HTML 元素,
|
且不会被 Markdown 解析器所影响。不过如果你在 Markdown 文件内创建了 HTML 元素,
|
||||||
|
@ -13,7 +13,7 @@ lang: zh-cn
|
|||||||
R 是一门统计语言。它有很多数据分析和挖掘程序包。可以用来统计、分析和制图。
|
R 是一门统计语言。它有很多数据分析和挖掘程序包。可以用来统计、分析和制图。
|
||||||
你也可以在 LaTeX 文档中运行 `R` 命令。
|
你也可以在 LaTeX 文档中运行 `R` 命令。
|
||||||
|
|
||||||
```python
|
```r
|
||||||
# 评论以 # 开始
|
# 评论以 # 开始
|
||||||
|
|
||||||
# R 语言原生不支持 多行注释
|
# R 语言原生不支持 多行注释
|
||||||
|
@ -11,7 +11,7 @@ lang: zh-cn
|
|||||||
|
|
||||||
Scala - 一门可拓展性的语言
|
Scala - 一门可拓展性的语言
|
||||||
|
|
||||||
```cpp
|
```scala
|
||||||
|
|
||||||
/*
|
/*
|
||||||
自行设置:
|
自行设置:
|
||||||
|
@ -12,7 +12,7 @@ Swift 是Apple 开发的用于iOS 和OS X 开发的编程语言。Swift 于2014
|
|||||||
|
|
||||||
参阅:Apple's [getting started guide](https://developer.apple.com/library/prerelease/ios/referencelibrary/GettingStarted/LandingPage/index.html) ——一个完整的Swift 教程
|
参阅:Apple's [getting started guide](https://developer.apple.com/library/prerelease/ios/referencelibrary/GettingStarted/LandingPage/index.html) ——一个完整的Swift 教程
|
||||||
|
|
||||||
```js
|
```swift
|
||||||
//
|
//
|
||||||
// 基础
|
// 基础
|
||||||
//
|
//
|
||||||
|
Loading…
Reference in New Issue
Block a user