Answers for "code block in mark down"

10

table in markdown

Colons can be used to align columns.

| Tables        | Are           | Cool  |
| ------------- |:-------------:| -----:|
| col 3 is      | right-aligned | $1600 |
| col 2 is      | centered      |   $12 |
| zebra stripes | are neat      |    $1 |

Markdown | Less | Pretty
--- | --- | ---
*Still* | `renders` | **nicely**
1 | 2 | 3
Posted by: Guest on May-01-2020
0

code highlight in readme

```js
function myFunction () {
   return 42;
}
```
Posted by: Guest on September-24-2020
-1

markdown code block

```ruby
require 'redcarpet'
markdown = Redcarpet.new("Hello World!")
puts markdown.to_html
```
Posted by: Guest on January-21-2021

Browse Popular Code Answers by Language