Built-in code editor

SurgeWP includes a built-in code editor because sometimes you just need to:

  • Rename a class
  • Change a conditional
  • Add a wrapper div
  • Adjust markup quickly

Use AI when:

  • You need structural changes (new fields, new repeater)
  • You need refactoring across multiple files
  • You want better defaults and fallbacks
  • You’re fixing parse errors and want consistent reasoning

Use the editor when:

  • You’re doing a surgical tweak
  • You know exactly what you want changed
  • You’re applying a coding standard across output

A common “best of both” flow is:

  • Let AI scaffold and build the first 80%
  • Use the editor to perfect the last 20%