This is how to add codeblocks to your posts
Input:
Output:
def show
@widget = Widget(params[:id])
respond_to do |format|
format.html # show.html.erb
format.json { render json: @widget }
end
end
Input:
Output:
1
2
3
4
5
6
7
def show
@widget = Widget(params[:id])
respond_to do |format|
format.html # show.html.erb
format.json { render json: @widget }
end
end
Input:
Output:
```shell
$ gem install jekyll
Input:
This is what `<html>` code looks like in a paragraph of text.
Output:
This is what <html>
code looks like in a paragraph of text.