Skip to content

Commit

Permalink
More demonstrative code example (#64)
Browse files Browse the repository at this point in the history
* demonstrative example 

Changed the example shown to demonstrate better how markdown formats (colours) the code block based on the given language, in this case javascript.

* Retained previous example

Based on feedback on pull request #64 from @cmwilson21 the example given in commit 784e639 should stay, but so should the original example.
  • Loading branch information
thomashudsonuk committed Aug 14, 2023
1 parent d958c77 commit 7e4e74f
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .github/steps/3-add-a-code-example.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ _Great job adding an image to the file :tada:_

In addition to code blocks, some code blocks should be rendered differently depending on the language, such as JavaScript or command-line text.

### Example
### Example 1

<pre>
```
Expand All @@ -26,6 +26,20 @@ $ git init
Initialized empty Git repository in /Users/skills/Projects/recipe-repository/.git/
```

### Example 2

<pre>
``` javascript
var myVar = "Hello, world!";
```
</pre>

#### How it looks

```javascript
var myVar = "Hello, world!";
```

### :keyboard: Activity: Adding a code example

1. As you did before, edit the file in this pull request.
Expand Down

0 comments on commit 7e4e74f

Please sign in to comment.