How to apply color in Markdown?

TL;DR Markdown doesn’t support color but you can inline HTML inside Markdown, e.g.: Longer answer As the original/official syntax rules state (emphasis added): Markdown’s syntax is intended for one purpose: to be used as a format for writing for the web. Markdown is not a replacement for HTML, or even close to it. Its syntax is very … Read more

Is there a “theirs” version of “git merge -s ours”?

A similar alternative is the –strategy-option (short form -X) option, which accepts theirs`. For example: However, this is more equivalent to -X ours than -s ours. The key difference being that -X performs a regular recursive merge, resolving any conflicts using the chosen side, whereas -s ours changes the merge to just completely ignore the other side. In some cases, the main problem using -X theirs instead … Read more

What is the Java ?: operator called and what does it do?

Yes, it is a shorthand form of It’s called the conditional operator. Many people (erroneously) call it the ternary operator, because it’s the only ternary (three-argument) operator in Java, C, C++, and probably many other languages. But theoretically there could be another ternary operator, whereas there can only be one conditional operator. The official name is given in the Java Language … Read more

not:first-child selector

One of the versions you posted actually works for all modern browsers (where CSS selectors level 3 are supported): If you need to support legacy browsers, or if you are hindered by the :not selector’s limitation (it only accepts a simple selector as an argument) then you can use another technique: Define a rule that has greater scope than what you intend and then “revoke” it … Read more