J’étais initialement enthousiaste à propos de la coloration syntaxique de CodePress dans WordPress 2.8, mais après l’avoir utilisée récemment, j’ai changé d’avis. Bien que la coloration syntaxique seule ne soit pas un problème, la façon dont elle complète les guillemets et l’indentation automatique la rend pour le moins agaçante.
J’ai posé la question sur Twitter et j’ai trouvé un fil de discussion sur les forums de support de WordPress.org, mais je n’ai malheureusement pas trouvé de solution sur l’un ou l’autre. Il s’avère que la solution est en fait beaucoup plus simple que je ne le pensais. Regardez cette vidéo rapide pour voir comment le désactiver :
Voici en résumé ce que vous devez faire :
- Connectez-vous au panneau d’administration de WordPress 2.8
- Naviguez vers l’éditeur de thème ou de plugin (peu importe lequel)
- Cliquez sur l’onglet “Options d’écran” situé dans le coin supérieur droit.
- Cliquez ensuite sur le lien “Désactiver la coloration syntaxique”.
Pour l’activer à nouveau, suivez les mêmes étapes et cliquez sur le lien “Activer la coloration syntaxique”. Une autre méthode de désactivation consiste à ajouter ?codepress=off ou ?codepress=on à la fin de l’URL de l’éditeur de thème.
Un coup de chapeau à Eric Sizemore (comme mentionné dans la vidéo) pour m’avoir fait remarquer cela.
Wow, that was fast.
Many thanks ! 🙂
I thought, there’s some problem with my installation ! 🙂
@Enk: Looks like you’re using WordPress 2.8.4 on your site.
Syntax highlighting was removed in 2.8.1 due to browser incompatibility: http://www.themelab.com/2009/07/10/wordpress-281-released/
Hey,
I can’t see any Screen Options tab on my Editor or any Appearance Area Page. What should I do? :s
[…] to Leland for the great tip! If you enjoyed this article, please consider sharing it! tweetmeme_style = […]
[…] 31.Disable Syntax Highlighting in WordPress 2.8 […]
[…] 31.Disable Syntax Highlighting in WordPress 2.8 […]
[…] Disable Syntax Highlighting in WordPress 2.8 Tagged as: syntax highlighter, wordpress, WordPress 2.8 No Comments Comments (0) Trackbacks (0) ( subscribe to comments on this post ) […]
thank you for this. like you, I was excited with the syntax highlighting until I used it.
[…] CodePress syntax highlighting for the theme and plugin editors […]
Thank you, Thank you, Thank you.
To think if I’d just examined the new interface I would have found it…..
The ease of editing the backend is, to me, what makes WordPress so great. The addition of this editor just about put me off it all together.
Saved my sanity.
@Eric: No problem. Again, thanks for pointing that out. I didn’t even that “Screen Options” tab before.
@Deven: I tried in Firefox and it lagged a little bit when loading the page, haven’t tried the others (IE, Opera, Safari maybe?).
@Adam: I think I know what you mean about the “weird stuff.” When trying to code in it, I can’t really explain it, but I just couldn’t stand it anymore. It wasn’t just the auto-identing and quote completion, but other weird things too.
Almost reverted back to 2.7.1 on my test site just because the theme editor is pretty important to me. Good thing I didn’t have to do that though. 🙂
Dude, your a legend, i never thought to look in the screen option
This syntax highlighter is so broken, it’s unusable – It just completely locks up in Opera 10, and trying to use copy/past in both firefox & IE8 causes me no end of just crazy weird stuff happening
Thanks alot
New codpress editor lags a lot on all three main browsers and thanks to your tip finally i disabled it. Its a really pathetic feature from wordpress i have ever seen in any of the new versions.
[…] See original here: Disable Syntax Highlighting in WordPress 2.8 | Theme Lab […]
And to think I almost created a plugin for it, until I found that, hehe. 🙂 Thanks for the mention 😉
[…] View post: Disable Syntax Highlighting in WordPress 2.8 […]