Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 16 additions & 16 deletions syntax/code.md
Original file line number Diff line number Diff line change
@@ -1,39 +1,39 @@
# Les blocs de code
# Code blocks

Les blocs de codes pré-formatés sont utlisés pour écrire sur la programmation ou surligner un code source. Plus que de simple pragraphe, les lignes de code d'un bloc de code sont litterallement interprétées.
Formatted code blocks are used to write on programming or to highlight source code. More than just a paragraph, the code block lines are literaly interpreted.

Voici un exemple :
Here's an example:

```
Ceci est un bloc de code
This is a code block
```

Afin de créer un bloc de code en Markdown, il suffit d'identer chaque ligne du bloc avec au moins 4 espaces ou une tabulation.
In order to write a code block in Markdown, one has to indent each code block line with at least 4 spaces or one tabulation.

Par exemple :
For instance:

```
Ceci est un paragraphe normal:
This is an ordinary paragraph:

Ceci est un bloc de code.
This is a code block.
```

Vous pouvez également créer un bloc de code separé avec:
You can also create a distinct code block using:

```

### Bloc de code en ligne
### Inline code blocks

Les blocs de code en ligne peuvent être écrit en utilisant: `
Inline code blocks can be written using: `

Par exemple:
For instance:

Ceci est `un bloc de code en ligne`
This is `an inline code block`

### La syntaxe de mise en avant
### The emphasizing syntax

Vous pouvez definir le langage utlisé pour mettre en évidence la syntaxe en ajoutant un nom sur un mot clé ouvrant. Exemple :
You can define the used language in order to emphasize the syntax by adding a name on an opening keywork, as below :

```js
var a = {};
```
```
39 changes: 39 additions & 0 deletions syntax/code.md.save
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Code blocks

Formatted code blocks are used to write on programmation or to highlight source code. More than just paragraphs, the code blocks lines are interpreted.

Here's an example:

```
This is a code block.
```

In order to create a code block in markdown, one has to indent each line of the block with at least four spaces or one tabulation.

For instance :

```
This is an ordinary paragraph:

This is a code block.
```

Vous pouvez également créer :

```

### Bloc de code en ligne

Les blocs de code en ligne peuvent être écrit en utilisant: `

Par exemple:

Ceci est `un bloc de code en ligne`

### La syntaxe de mise en avant

Vous pouvez definir le langage utlisé pour mettre en évidence la syntaxe en ajoutant un nom sur un mot clé ouvrant. Exemple :

```js
var a = {};
```
8 changes: 4 additions & 4 deletions syntax/images.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
![Alternative text][id]
[id]: url/to/image "Optional title"
```
Comme vous avez dû le remarquer, les images en Markdown sont très semblables aux liens.
La différence est la suivante :
* les crochets doivent être précédés par un point d'exclamation ;
* ils peuvent contenir un texte alternatif, qui s'affiche quand l'image ne peut être chargée.
As you may notice, markdown pictures and links look alike.
Here are the main differences :
* the pictures brackets must be preceded by an exclamation point ;
* they can contain an alternative text that'd be displayed when the pictures can't be loaded.

---

Expand Down