Skip to navigation

Backslashes in WordPress

WordPress, the software I use to write this blog, removes backslashes from posts, which is more than annoying for code examples. For me, this solution seems to work:

  1. Turn off the visual editor for all users. Go to Users → Edit user → Your Profile, and untick “Use the visual editor when writing”.
  2. When writing your post, instead of a backslash, type: \

Comments are closed.