Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

traduct #242

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
44 changes: 22 additions & 22 deletions syntax/code.md
Original file line number Diff line number Diff line change
@@ -1,39 +1,39 @@
# Les blocs de code
# The 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.
Pre-formatted code blocks are used to write programming or to highlight source code. More than a simple pragma, the lines of code of a block of code are literally interpreted.

Voici un exemple :
Here is an example :

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

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 create a block of code in Markdown, it is sufficient to ident each line of the block with at least 4 spaces or a tabulation.

Par exemple :
For example :

```
Ceci est un paragraphe normal:
`` `
This is a normal paragraph:

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

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

```
`` `

### Bloc de code en ligne
### Online code block

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

Par exemple:
For example:

Ceci est `un bloc de code en ligne`
This is an 'on-line code block'

### La syntaxe de mise en avant
### The syntax for highlighting

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 language used to highlight the syntax by adding a name to an opening keyword. Example:

```js
`` `Js
var a = {};
```