3 ms·
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
by dkarl 16y ago
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.
- xtacy 16y agoIf you're on a Mac, Option+<hyphen> gives you endash. Shift+Option+<hyphen> gives you the longer emdash.
- kdeldycke 16y agoThat'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 http://alexgorbatchev.com/SyntaxHighlighter . Several WordPress plugins are available. I personally use SyntaxHighlighter Evolved: http://wordpress.org/extend/plugins/syntaxhighlighter http://wordpress.org/extend/plugins/syntaxhighlighter