Commit 44275041 authored by Sytse Sijbrandij's avatar Sytse Sijbrandij

Merge branch 'mention_rouge_in_docs' into 'master'

Add references to the rouge gem library

Give the props to this awesome library we use
for syntax highlighting.

See merge request !2605
parents 991cd076 6292ddd1
...@@ -88,6 +88,9 @@ GFM will autolink almost any URL you copy and paste into your text. ...@@ -88,6 +88,9 @@ GFM will autolink almost any URL you copy and paste into your text.
## Code and Syntax Highlighting ## Code and Syntax Highlighting
_GitLab uses the [rouge ruby library][rouge] for syntax highlighting. For a
list of supported languages visit the rouge website._
Blocks of code are either fenced by lines with three back-ticks <code>```</code>, or are indented with four spaces. Only the fenced code blocks support syntax highlighting. Blocks of code are either fenced by lines with three back-ticks <code>```</code>, or are indented with four spaces. Only the fenced code blocks support syntax highlighting.
```no-highlight ```no-highlight
...@@ -585,3 +588,5 @@ By including colons in the header row, you can align the text within that column ...@@ -585,3 +588,5 @@ By including colons in the header row, you can align the text within that column
- This document leveraged heavily from the [Markdown-Cheatsheet](https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet). - This document leveraged heavily from the [Markdown-Cheatsheet](https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet).
- The [Markdown Syntax Guide](https://daringfireball.net/projects/markdown/syntax) at Daring Fireball is an excellent resource for a detailed explanation of standard markdown. - The [Markdown Syntax Guide](https://daringfireball.net/projects/markdown/syntax) at Daring Fireball is an excellent resource for a detailed explanation of standard markdown.
- [Dillinger.io](http://dillinger.io) is a handy tool for testing standard markdown. - [Dillinger.io](http://dillinger.io) is a handy tool for testing standard markdown.
[rouge]: http://rouge.jneen.net/ "Rouge website"
...@@ -12,6 +12,9 @@ The default is **Charcoal**. ...@@ -12,6 +12,9 @@ The default is **Charcoal**.
## Syntax highlighting theme ## Syntax highlighting theme
_GitLab uses the [rouge ruby library][rouge] for syntax highlighting. For a
list of supported languages visit the rouge website._
Changing this setting allows the user to customize the theme used when viewing Changing this setting allows the user to customize the theme used when viewing
syntax highlighted code on the site. syntax highlighted code on the site.
...@@ -36,3 +39,5 @@ The default is **Your Projects**. ...@@ -36,3 +39,5 @@ The default is **Your Projects**.
It allows user to choose what content he or she want to see on project page. It allows user to choose what content he or she want to see on project page.
The default is **Readme**. The default is **Readme**.
[rouge]: http://rouge.jneen.net/ "Rouge website"
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment