• When I test with the “canonical” example, the code isn’t highlighted in the preview.

    With the “canonical” example, I of course mean this:

    #!ruby
        class Foo < Bar
          def hello
            puts "Hello World!"
          end
        end

    The code is highlighted in the editor preview pane, but then it’s highlighted even without the #!ruby line. If I preview the page then it is not highlighted. Also, the “shebang” line is shown in the preview pane, but not in the preview page.

    I have installed the SyntaxHighlighter Evolved (version 3.1.7), WP-Markdown (version 1.2) and WP-Markdown-SyntaxHighlighter (version 0.4) plugins, in that order.

    Is there something wrong on my side or is it a bug somewhere?

Viewing 1 replies (of 1 total)
  • Plugin Author mattshelton

    (@mattshelton)

    So there are three things going on here that you’re reporting:

    1. The markdown previewer doesn’t show the language-specific syntax highlighting.
    2. The #! line is show in the preview area.
    3. The post preview doesn’t run the content through the plugin.

    #1 and #2 are because I’m not trying to hook into the wp-markdown previewer. I can look into that, but I would not expect it any time in the near future.

    #3 I cannot reproduce with the same versions, which are the same that I am using.

    PS: Sorry this took so long to reply. I don’t watch the support forums (though I will now) and I had expected to get an email if anyone posted here, but did not.

Viewing 1 replies (of 1 total)
  • The topic ‘Highlightning doesn't work when previewing the page’ is closed to new replies.