WordPress / better-code-editing

[✅ Merged into 4.9-alpha] Better Code Editing WordPress plugin
https://wordpress.org/plugins/better-code-editing/
37 stars 16 forks source link

Prevent saving when lint errors present #69

Closed westonruter closed 6 years ago

westonruter commented 6 years ago

Fixes #49.

By integrating with the lint addon in CodeMirror, the file editor in WordPress can block saving when an error is detected. When applied to PHP, this can help prevent against whitescreening your site. CodeMirror's syntax highlighting and autocompletion of braces also guards against syntax errors while coding.

Demo video on YouTube:

Play video on YouTube

westonruter commented 6 years ago
westonruter commented 6 years ago
westonruter commented 6 years ago

Custom HTML widget in Admin:

image

westonruter commented 6 years ago

Custom HTML widget in the Customizer:

image

westonruter commented 6 years ago

Additional CSS in the Customizer:

image

westonruter commented 6 years ago

Plugin editor:

image