Title: Posting code with backslashes
Last modified: August 18, 2016

---

# Posting code with backslashes

 *  [hashashin](https://wordpress.org/support/users/hashashin/)
 * (@hashashin)
 * [18 years, 10 months ago](https://wordpress.org/support/topic/posting-code-with-backslashes/)
 * Hi
 * What is the correct way to post code with backslashes on WordPress?
 * If I put them directly, they are replaced by some special character. If I put
   them preceded by a backslash, it works until my next edit, when they are replaced
   by just one, and then, when saving, replaced again by some special character.
 * Thanks for any hint.
    To have a blog on programming this way is quite difficult

Viewing 1 replies (of 1 total)

 *  Thread Starter [hashashin](https://wordpress.org/support/users/hashashin/)
 * (@hashashin)
 * [18 years, 10 months ago](https://wordpress.org/support/topic/posting-code-with-backslashes/#post-600284)
 * Googling a little I found up on some blog that to use the XML entity for the 
   backslash is a solution. Unfortunately that user didn’t try to re-edit his post,
   or he would get the backslash again, instead of the XML entity, and thus, when
   saving the post, it would get lost.
 * Well, let me continue googling around.

Viewing 1 replies (of 1 total)

The topic ‘Posting code with backslashes’ is closed to new replies.

## Tags

 * [backslash](https://wordpress.org/support/topic-tag/backslash/)
 * [code](https://wordpress.org/support/topic-tag/code/)

 * In: [Everything else WordPress](https://wordpress.org/support/forum/miscellaneous/)
 * 1 reply
 * 1 participant
 * Last reply from: [hashashin](https://wordpress.org/support/users/hashashin/)
 * Last activity: [18 years, 10 months ago](https://wordpress.org/support/topic/posting-code-with-backslashes/#post-600284)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
