I wanted to do a Question Answer website where people can write and post code sources in python/matlab/R and any programming langage.
The Crayon Syntax Highlighter plug-in is great and user-friendly. However, it seems to not integrate well with your plug-in:
First, when I activate Crayon Syntax Highlighter, on the page of the question, there is TinyMCE box which appears instead of the usual discret comment box (the box where you write a comment). This TinyMCE box is unaesthetic and looks like an obvious bug for the user as it is not usable (no button to post appear on it)
Second point: the first answer you make allow you to use Crayon Syntax Highlighter. However, the next answers box which appear does not allow you to use the Crayon tools :/
Do you have any advices on what code source highlighter plug-in would be fully compatible with your plug-in?
This TinyMCE box does not provide a button “post the comment”
At the moment, DW Q&A does not support to compatible with the Crayon Syntax Highlighter plug-in.
We have found a workaround:
SyntaxHighlighter Evolved will be perfect, but there is a little problem with DWQA plugin.
You can post a question, answer, or a comment with nice highlight, but if you try to edit that content, the popup editor removes every linebreak, which is really annoying, if you have to hit enter after every “;”, because, you missed something.
Fix the plugin in the actions.php, around line 782:
There is an undocumented attribute, ‘remove_linebreaks’ which you should set to false (the quicktags attribute can remain false, that’s unrelated)
If you fix manually the plugin, with an undocumented attribute, it will work well with SyntaxHighlighter Evolved.
Please login or Register to submit your answer