Bug: MATLAB in SyntaxHighlighter Code block

  • Unknown's avatar

    I’m trying to paste MATLAB code in a post and found a bug using the SyntaxHighlighter Code block. Basically, the code seems to ignore all formatting and prints the code out as a single line with no line numbers.

    Steps to reproduce:

    1. Add a SyntaxHighlighter Code block

    2. Paste in the following

    %This is MATLAB code
    a = 10;
    b = 30;
    c = a * b;

    3. Either publish or preview (both show the same problem) the page

    You should see:

    %This is MATLAB code a = 10; b = 30; c = a * b;

    Changing the language to something else e.g. C or Plain Text fixes the problem.

    The blog I need help with is: (visible only to logged in users)

  • Hi, thanks for the report, as well as for letting us know the C option works for now. We’ve filed this on a github issue for you & can let you know when we’ve got more information.

    Cheers :)

  • The topic ‘Bug: MATLAB in SyntaxHighlighter Code block’ is closed to new replies.