• It’s driving me crazy… every time I type a single quote or bracket, the theme editor and plugin editor stick in an extra closing one. Or, if I want to replace a parameter with a null string ” I select the word, type two single quotes, and…. instead of replacing the word with the null string of two single quotes, the word is still there, surrounded by four single quotes, creating a syntax error.

    I feel like I’m spending half my life hunting around for the extra punctuation the WP editors “helpfully” stick in that messes up my code. I just spent several hours googling and apparently I’m the only person in the world this trips up. It’s become a very major headache and I’m extremely frustratrated. I *cannot* have WP changing what I type. I will type what I need. Where is the option to turn this “helpful” constant interference with my coding off?

    Thanks.

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    The code editor is an implementation of CodeMirror. It’s possible to dynamically configure it, but IDK if suppressing the behavior you dislike is possible or not. Look through its docs. You now know as much about it as I do.

    Not too long ago, it was risky using the built-in code editor because you lose access and ability to correct if you introduce any syntax errors. It’s much safer these days, but there still remains a risk of losing access on error. Plus there is no mechanism to keep backup copies. Most coders have their favorite code editor they prefer to use. I recommend finding one you like and editing files locally after downloading via FTP. This way you can maintain backups and can always correct any inadvertent errors that would crash the site.

Viewing 1 replies (of 1 total)

The topic ‘Auto-close quotes, brackets, etc tripping me up, MUST GO’ is closed to new replies.