[Plugin: Crayon Syntax Highlighter] Crayon on comments
-
No mate, with the Twenty Twelve theme, and latest github when ,i add filter to my function.php file i got critical error, i hope its not crash my blog. But still if i logged as admin , marker html show up in commnets.
Hmm, what was the critical error? Here’s my theme file:
https://www.dropbox.com/s/lwy2zkkua9yon1w/functions.php
Without knowing the cause of the issue or being able to reproduce it myself my hands are tied 😛
When i add filter to funstions.php file in Twenty Twelve theme, i get this message :
Fatal error: Call to undefined function wp_editor() in /home/sladvice/domains/sladvice.xcl.pl/public_html/advice/wp-content/themes/twentytwelve/functions.php on line 463.
You need at least WP 3.3:
http://codex.ww.wp.xz.cn/Function_Reference/wp_editorYeah ,i have version 3.2.1 ,when i change at wp3.5 TinyMCE working fine , now i see marker HTML in my commnents.
Thanks for your help, have nice day.No problem!
There is a problem on the visual editor after clicking reply.
I read the solution here, but it makes my wordpress blank. I don’t know how to fix this.How about adding only crayon button to the comment area without another buttons?
Can you enable WP_DEBUG in wp-config and see what errors are printed on the blank screen?
After enabling wp_debug I only get this warning:
Parse error: syntax error, unexpected end of file in D:\UniServer\www\belajarthemewp\wp-content\themes\twentytwelve\functions.php on line 484The code I add to the functions.php is exactly the same as here.
And the line 484 is the last line of the code.
If I delete the code, the problem is the visual editor cannot be used after clicking reply button
Is there another solution? I’m not a coder.
I’m sorry and thanks.
Yeah that’s ok, I’ll add a setting to do this automatically 🙂 This is caused when you break the structure of the code by removing curly braces or php tags.
Try the latest beta: https://github.com/aramkocharyan/crayon-syntax-highlighter/archive/master.zip
TinyMCE is automatically added to the comment box when the Tag Editor is enabled on the frontend
Thanks.
Yes, but unfortunately, the problem after clicking reply button still exist on the visual editor (there is no problem when using the text/html editor).
After clicking reply, the visual editor cannot be used to write anything. I don’t find any notice even the wp_debug is enabled.Actually I only need the functionality given by WP Syntax Highlighting (screenshoot).But this plugin out of date and gives many warning when wp-debug is enabled but still work.
I think the functionality given by WP Syntax Highlighting is better than enabling all buttons of tinymce (because I prefer to use CKEditor when I need a wysiwyg editor on comment area).
I’m sorry and thanks.
The topic ‘[Plugin: Crayon Syntax Highlighter] Crayon on comments’ is closed to new replies.
(@kaisercrazy)
13 years, 7 months ago
Hi there,
Thanks for awesome plugin but i have a problem with Crayon.
If i have a post without code, Crayon don’t load, this ok. But when i get a comment with code to this post, Crayon don’t work on standalone comments.
But if i add some little code like
echo "hello world"to post, crayon load properly, show post’s and comment’s code.How i can enable Crayon for “only” comments.
Note: crayon on comments selected in option panel.
Thanks
http://ww.wp.xz.cn/extend/plugins/crayon-syntax-highlighter/