Support » Plugin: SyntaxHighlighter Evolved » SintaxHighlighter Evolved incompatible with Latex for WordPress plugin

  • Luca


    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???


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