Mike Morearty
13 Jun 2012

French-style «quotation marks» are great for code samples

I recently came up with the idea of using French-style quotation marks to surround replaceable parts in code samples, e.g.:

$ cat Ā«filenameĀ»

Another example is my answer here.

I love this! Because no one ever uses « » for anything else, and because it works even in preformatted text that doesn’t support bold or italics.

On a Mac, type Option-\ to get the open-quote character and Shift-Option-\ to get the close-quote character.

comments powered by Disqus