0

I have a blog where I publish Linux tutorials. Some of the commands I listed have a -- before command-line arguments. e.g.: dpkg --get-selections.

The problem is that WordPress automatically switches -- to an – (–).

I know I could use the −− HTML entities, but the display is slightly different than the keyboard - sign.

What I want is to disable this behaviour of WP. Is there a way to solve this?

1
  • Update: The function responsible for this is wptexturize... line 73 in formatting.php ...
    – adrian7
    Commented Dec 18, 2012 at 11:41

1 Answer 1

0

Problem solved with this gist https://gist.github.com/4329321 .

[notexturize]--[/notexturize] worked like a charm.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.