Using SyntaxHighlighter Evolved with Markdown
-
I’m using a markdown plugin, but I can usually escape from markdown using
markdown="0"
The code below get displayed as syntax highlighted HTML instead of Python. what can I do to fix this please?
<div markdown="0"> [code language="""python"""] def find_intervals(data): pass data = 'A' assert find_intervals(data) == [(0, 0, 'A')] data = 'BBABBA' assert find_intervals(data) == [(0, 1, 'B'), (2, 2, 'A'), (3, 4, 'B'), (5, 5, 'A')] data = 'ABBAABBAA' assert find_intervals(data) == [(0, 0, 'A'), (1, 2, 'B'), (3, 4, 'A'), (5, 6, 'B'), (7, 8, 'A')] data = '' assert find_intervals(data) is None [/code] </div>
This editor (WP forum) added extra “” around “python”. My code does not have that.
Here is some sample output:
<span class="kwd">def</span><span class="pln"> find_intervals</span><span class="pun">(</span><span class="pln">data</span><span class="pun">):</span><span class="pln"> </span><span class="kwd">pass</span><span class="pln"> data </span><span class="pun">=</span><span class="pln"> </span
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Using SyntaxHighlighter Evolved with Markdown’ is closed to new replies.