Banner: Free feature

This article will give Markdown code examples for common ways you might want to format your text on CodeHS.

Code and Syntax Highlighting

Inline code: wrap text in back ticks `

example: `takeBall()`

Blocks of code: use three back ticks and indicate the language for syntax highlighting

```javascript
var s = "JavaScript syntax highlighting";
alert(s);
```

```python 
s = "Python syntax highlighting"
print s
```

``` 
No language indicated, so no syntax highlighting.
```

Headers

# H1 example text
## H2 example text
### H3 example text
#### H4 example text
##### H5 example text
###### H6 example text

Alternate H1/H2 Header with Horizontal Rule

Alt-H1 
======

Alt-H2
------

[Clickable text for inline-style link](https://www.codehs.com)

[Clickable text for link with a title](https://www.codehs.com "CodeHS Homepage")

Images

Inline-style:

![alt text](https://static.codehs.com/img/program_icons/karel.png "CodeHS Logo")

Animated .gif showing the flow of editing quiz question text using markdown

Emphasis

Italics: wrap text in *asterisks* or _underscores_

Bold: wrap text in double **asterisks** or __underscores__

Combined: wrap with: **asterisks and __underscores__**

Strikethrough: wrap text in two tildes: ~~example text~~

Still have questions? Contact our team at hello@codehs.com to learn more!

Did this answer your question?