Title: Disable code editor auto-format?
Last modified: November 20, 2020

---

# Disable code editor auto-format?

 *  [panfrie](https://wordpress.org/support/users/panfrie/)
 * (@panfrie)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/disable-code-editor-auto-format/)
 * When I’m using the code editor for a page, I often start writing something, then
   have to go to another screen to copy a bit of text or something. The moment I
   click out of the box, if there is any unfinished code, or quotes that are missing
   the closing, or whatever, the editor just takes a big steaming dump all over 
   whatever is there, sometimes entirely removing bits (that I don’t even notice,
   because I’m not looking at it when it happens).
 * Is there any way to entirely disable the code editor from messing with my code
   while I’m trying to do things?
    -  This topic was modified 5 years, 6 months ago by [panfrie](https://wordpress.org/support/users/panfrie/).

Viewing 1 replies (of 1 total)

 *  [Vlad](https://wordpress.org/support/users/vladytimy/)
 * (@vladytimy)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/disable-code-editor-auto-format/#post-13689478)
 * Hi, panfrie!
 * You are not the only one struggling with this.
 * You can read more on this [here](https://wordpress.org/support/topic/turn-off-auto-formatting-in-code-editor/).
 * As [@sitebay](https://wordpress.org/support/users/sitebay/) says:
 * > I find it easiest to use the block editor and just add a Custom HTML block.
   > It will not attempt to auto-format your code.
 * [@rbermejo7](https://wordpress.org/support/users/rbermejo7/) also suggests creating
   a function [https://stampede-design.com/blog/disable-html-auto-formatting-in-wordpress/](http://(details here))
 * You could also try this plugin: [Raw HTML](https://wordpress.org/plugins/raw-html/).
 * Hope this helps,
    Good luck! Vlad

Viewing 1 replies (of 1 total)

The topic ‘Disable code editor auto-format?’ is closed to new replies.

 * In: [Everything else WordPress](https://wordpress.org/support/forum/miscellaneous/)
 * 1 reply
 * 2 participants
 * Last reply from: [Vlad](https://wordpress.org/support/users/vladytimy/)
 * Last activity: [5 years, 6 months ago](https://wordpress.org/support/topic/disable-code-editor-auto-format/#post-13689478)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
