How to Disable Syntax Highlighting in Wordpress

by Gautam on July 2, 2009

in Wordpress

WordPress LogoIn Wordpress 2.8, codepress which is a syntax highlighting tool, was added. It has many good features like line numbers, syntax highlighter, etc, but sometimes it becomes very irritating. For example, when we save a theme or plugin file after editing it within wordpress, it itself inserts some unnecessary symbols like   which could cause fatal errors. So in this post, I will tell you how to disable syntax highlighting in wordpress.

Its pretty simple to disable syntax highlighting (codepress). Just follow these simple steps:

  • Login to Wordpress Admin Panel.
  • Go to edit a theme or plugin.
  • Click Screen Options.
  • Click Disable syntax highlighting.

Disabling Syntax Highlighting in Wordpress

(Click on image to enlarge)

You can enable it again by following the same process, but this time, click Enable syntax highlighting.

Enter your email address:

Related posts:

  1. How to disable GoogleUpdate.exe?
  2. How to install more than one Wordpress plugins in single click
  3. Delete All Trackbacks on Wordpress Blog & Disable Self Pings
  4. How to Install Wordpress and Steps after Installing Wordpress
  5. Limit or disable your post revision in wordpress with Revision control plugin


{ 3 comments… read them below or add one }

1 George Serradinho July 2, 2009 at 16:57

Thanks Gautam, I have seen the syntax highlighter in action from my admin side, but never knew it could be disabled. I thought it would be some core hack or that. I think the WP developers thought ahead of time about this one.

If you say that it adds other symbols when saving, don’t you think that you should notify them to correct that or is that what it’s meant to do?
.-= George Serradinho ´s last blog ..A few Cool Changes =-.

Reply

2 Gautam July 3, 2009 at 12:06

They are (must be) already working on this issue. And its not meant to do that, like sometimes, when we edit a particular code in a line, it deletes all the code after that (when save it), or inserts symbols which it shouldn’t like  , which causes a fatal error, especially if you are editing theme files, and an error is caused because of this, you have to login into FTP and edit the code again as you can’t edit it anymore from your wordpress editor.
.-= Gautam ´s last blog ..Disable External Link Confirmation Nag on Orkut =-.

Reply

3 Nihar July 3, 2009 at 12:00

Gautam, thanks for this. I almost deleted everything from the line i edited till the end of my theme’s single.php due to this syntax highlighting

I will straight away now disable it.
.-= Nihar ´s last blog ..June 2009 Blog Traffic & Income statistics =-.

Reply

Leave a Comment

Previous post:

Next post: