livebs / syntaxhighlighter

Automatically exported from code.google.com/p/syntaxhighlighter
GNU General Public License v3.0
0 stars 0 forks source link

triple quoted python strings aren't recognized. #2

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Make a snippet in python with a triple quoted string.

[source:python]
    '''this is a multiline string
    blablabla 
    '''
"""This is also a multiline string"""
"""
as
is
this"""
[/source]

What is the expected output? What do you see instead?

It's obviously confused. See attached image.

What version of the product are you using? On what operating system?

Latest version, linux/apache/firefox

Original issue reported on code.google.com by mikelin...@gmail.com on 21 May 2007 at 3:57

Attachments:

GoogleCodeExporter commented 8 years ago
Stupid triple quotes in python are such a head ache :) I've struggled with it 
in the
past, and I guess it's not completely working still.

So, to be clear, are there triple single quotes as well or just triple regular 
quotes?

Original comment by alex.gor...@gmail.com on 21 May 2007 at 4:08

GoogleCodeExporter commented 8 years ago
Hey, sorry, I think it's actually wordpress reencoding the quotes into fancy 
quotes
which the syntax highlighter doesn't recognize.

I'll look into it more, and see if I can get it to stop doing that.

but yea, you can use both single and double quotes for triple quotes in Python.

Original comment by mikelin...@gmail.com on 21 May 2007 at 4:55

GoogleCodeExporter commented 8 years ago
yea, that was it. I got it to stop reencoding it with the 
<a href="http://wordpress.org/extend/plugins/text-control/">Text Control</a> 
plugin.
My bad.

Sorry for bothering you!

Original comment by mikelin...@gmail.com on 21 May 2007 at 5:08

GoogleCodeExporter commented 8 years ago

Original comment by alex.gor...@gmail.com on 22 May 2007 at 6:42