Hi,
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.
I don’t want to be mean with you, but you intervention is not relevant I’m afraid :/ :/
1) The introduction of my question clearly states that DW Q&A does not support the Crayon Syntax Highlighter plug-in.
2) the question is “what code source highlighter plug-in would be fully compatible with DW Q&A?”.
Then, your “answer” can’t be accepted :/ I am sorry.
Any progress with this problem?
Apologies for the delay in replying and about previous answer.
At the moment, DW Q&A does not support compatible with the Crayon Syntax Highlighter plug-in. However, it's great plugin. We will discuss and update for the DW Q&A plugin to compatible with Crayon Syntax Highlighter plug-in. We will release as soon as possible. Sorry about that and also thanks for letting us know.
Regards,
I am curious, what are the syntax highlighter plugins that are currently supported by DW Q&A?
It is actually the question of this topic but Dominic replied twice without answering the question :/ :/ So I guess, we will never know ^^
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:
http://pastebin.com/evgqVFDk
There is an undocumented attribute, ‘remove_linebreaks’ which you should set to false (the quicktags attribute can remain false, that’s unrelated)
TL;DR:
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