Hacker News new | past | comments | ask | show | jobs | submit login

Minor gotcha: -- has been morphed to a dash, so be careful to distinguish between one hyphen ('-') and two hyphens (a dash) when typing or copying the command options.

I actually love this feature for most writing. I use -- a lot in emails and in texts and wish it would be expanded to a dash. It's an error in this case, though, especially since copying and pasting the dash gives you one hyphen instead of two.




If you're on a Mac, Option+<hyphen> gives you endash. Shift+Option+<hyphen> gives you the longer emdash.


That's WordPress default behavior. It also changes simple and double quotes.

The simplest fix is to enclose your command lines with the "<code>" HTML tag.

A good WordPress companion for blog featuring lots of command-lines and code is Alex Gorbatchev's SyntaxHighlighter: http://alexgorbatchev.com/SyntaxHighlighter . Several WordPress plugins are available. I personally use SyntaxHighlighter Evolved: http://wordpress.org/extend/plugins/syntaxhighlighter




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: