GitHub Diff Syntax Highlighting
Did you know GitHub support diff syntax highlighting? I didn’t until just recently. When creating and highlighting code blocks you can set the language to
diff and highlight lines starting with
You gonna order something, kid? - Ah, yeah. Give me- Give me a Tab. Tab? I can't give you a tab unless you order something. + Right. Give me a Pepsi Free. You want a Pepsi, pal, you're gonna pay for it.
In the code block above, we’ve added the
- signs for the lines we want to highlight. You can see the full markdown syntax in the example below.
Here you can find an example from an issue on GitHub.
Like this article? Reach out to me and say hi on Twitter!
All articles written with ♥ by Vincent Klaiber