Using syntax highlighting in markdown for TIL
If you present some code sinppets using markdown:
def method
"hello"
end
remember to add language parameter to backticks like this:
```ruby
def method
"hello"
end
```
then you will get colored output:
def method
"hello"
end
This works even in GitHub.
Tweet