As a quick summary, here's what you need to do:
Posted: Mon Dec 23, 2024 4:43 am
I was initially excited about CodePress' syntax highlighting in WordPress 2.8 , though after using it recently, I've changed my mind. While just the syntax highlighting alone isn't a problem, the way it completes quotes, and auto-indents makes it somewhat annoying to say the least.
I asked on Twitter , and found a thread on the WordPress.org support forums, but unfortunately I couldn't find a solution on either. It turns out the solution is a lot simpler than I thought. Check out this quick video to see how to disable it:
Log in to your WordPress 2.8 admin panel
Navigate to the theme or plugin editor (it doesn't matter which one)
Click on the “Screen Options” tab located in the upper right corner
Next, click the “Disable syntax highlighting” link.
To turn it back on, follow the same steps and click the “Enable Syntax Highlighting” link. Another method to disable/enable it is to add ?codepress=off or ?codepress=on to the end of the Theme Editor URL.
Hat tip to Eric Sizemore (as mentioned in the video) for pointing this out to me.
Edit the “Allow from” line to reflect your IP address. To add more IP addresses, canada number list add a new line with “Allow from” and the next IP address, and so on. Now, you most likely already have a .htaccess file in your WordPress root folder. If so, edit the file and copy and paste the contents of your edited .htaccess file from the zip, and save/reload.
Now open the .htaccess file inside the wp-admin folder of the zip. You should see something like:
Orden Denegar,Permitir
Denegar desde todos
Permitir desde xx.xx.xx.xx
Do the same as above. And add any extra IPs you want to allow in the wp-admin area. Most likely you don't have a .htaccess file in your wp-admin folder, so just upload the edited .htaccess file from the zip to your wp-admin folder.
I asked on Twitter , and found a thread on the WordPress.org support forums, but unfortunately I couldn't find a solution on either. It turns out the solution is a lot simpler than I thought. Check out this quick video to see how to disable it:
Log in to your WordPress 2.8 admin panel
Navigate to the theme or plugin editor (it doesn't matter which one)
Click on the “Screen Options” tab located in the upper right corner
Next, click the “Disable syntax highlighting” link.
To turn it back on, follow the same steps and click the “Enable Syntax Highlighting” link. Another method to disable/enable it is to add ?codepress=off or ?codepress=on to the end of the Theme Editor URL.
Hat tip to Eric Sizemore (as mentioned in the video) for pointing this out to me.
Edit the “Allow from” line to reflect your IP address. To add more IP addresses, canada number list add a new line with “Allow from” and the next IP address, and so on. Now, you most likely already have a .htaccess file in your WordPress root folder. If so, edit the file and copy and paste the contents of your edited .htaccess file from the zip, and save/reload.
Now open the .htaccess file inside the wp-admin folder of the zip. You should see something like:
Orden Denegar,Permitir
Denegar desde todos
Permitir desde xx.xx.xx.xx
Do the same as above. And add any extra IPs you want to allow in the wp-admin area. Most likely you don't have a .htaccess file in your wp-admin folder, so just upload the edited .htaccess file from the zip to your wp-admin folder.