How to Replace Default Theme and Plugin Editor in WordPress
The default WordPress theme and plugin editors are simple plain text editors. They are not meant to be used as a development tool. Their purpose is to quickly take a look at code, or make some minor changes to your child theme or a site-specific plugin. However, if you want to have a more robust interface for these editors with syntax highlighting, line numbers, row highlighting, then you are at the right place. In this article, we will show you how to replace the default theme and plugin editor in WordPress.
“Theme Editor” is open source software. The following people have contributed to this plugin.
How to Disable WordPress Theme and Plugin Editors
You can completely avoid this by disabling the Theme Editor and Plugin Editor by adding a WordPress constant (or rule) to the WordPress configuration file (wp-config.php) found in the installation folder on your web server. Download the wp-config.php via FTP and open the file in a text editor, such as Notepad (PC) or TextMate (Mac). Look for the following line of code:
How to Disable the WordPress Plugin and Theme Editor
If someone other than yourself has an Administrator user role on your WordPress website, and they don’t need to edit code, but start “playing” around anyway in the file editor, for whatever reason, they can break your entire website.
An easy to use, with intuitive interface, WordPress plugin that replaces the default Theme and Plugin Source Code Editor with an enhanced editor by a CodeMirror library. The WordPress default Theme Editor (in Appearance => Editor) and Plugin Editor (in Plugins => Editor) is great for doing some custom changes to your Themes or Plugins files, although it is rather limited. This is where the “Syntax Highlighter for Theme/Plugin Editor” can help. With an enhanced source code editor you can see a code with syntax highlighting, and with line numbering, so you can easily read your code and detect any errors.
Afrikaans, Albanian, Arabic, Catalan, Chinese (China), Chinese (Hong Kong), Chinese (Taiwan), Croatian, Czech, Danish, Dutch, English (Australia), English (Canada), English (New Zealand), English (South Africa), English (UK), English (US), French (Canada), French (France), Galician, German, German (Switzerland), Greek, Hebrew, Hungarian, Italian, Japanese, Korean, Lithuanian, Luganda, Norwegian (Bokmål), Persian, Polish, Portuguese (Brazil), Portuguese (Portugal), Romanian, Russian, Serbian, Spanish (Argentina), Spanish (Chile), Spanish (Mexico), Spanish (Spain), Swedish, Thai, Tibetan, Turkish, Ukrainian, Vietnamese, and Welsh.