• Luca

    (@lucacerone)


    Hi,
    on my WordPress website is use both the Latex for WordPress plugin and the SyntaxHighlighter Evolved plugin.
    (I think it is pretty common that who writes about numerical simulations wants both mathematical formula and code displayed on its website).

    I had no trouble for a long time till I needed to post the following bash code

    [bash]PS1="\[\e[1;31m\]name\[\e[0m\]@\h:\w\$ "[/bash]

    When having both SyntaxHighlighter and the Latex plugins enabled, this code is not displayed correctly. However if I disable the Latex plugin it is correctly rendered.

    What I think is causing the issue is that the latex plugin (MathJax) thinks that \[ and \] is latex code.

    Is there a way to avoid code to be highlighted by SyntaxHighlighter to be parsed also by other plugins?
    (I think this is a general issues, not only of incompatibility with Mathjax.. e.g. think that I want to write the Python code:

    x = [aname] and a name is some shortcode used by other plugins.

    If you could make the code in between SintaxHighlighter short codes isolated from the rest, that should solve the compatibility issues.

    Apart from disabling the Latex plugin how can I fix the issue on my website???

    Cheers,
    Luca

    http://wordpress.org/extend/plugins/syntaxhighlighter/

Viewing 1 replies (of 1 total)
  • Thread Starter Luca

    (@lucacerone)

    For those who have the same issue: the MathJax Latex plugin works fine with SyntaxHighlighter Evolved, although it has much less functionalities.

Viewing 1 replies (of 1 total)
  • The topic ‘SintaxHighlighter Evolved incompatible with Latex for WordPress plugin’ is closed to new replies.