It seems that there is a problem with parsing python multiline strings when these are delimited by '''.

Here's the screenshot from this answer: enter image description here

Workaround: use """ instead: enter image description here

Yes, I also realised by now that it should spell its and not it's...

share|improve this question
add comment

1 Answer

I believe this is an issue with auto-detecting python. If you add the syntax highlight hint, for python:

<!-- language: lang-py -->

Then your second scenario shows up correctly @Siva:

Scenario #2: With single quotes' around a comment containing a single quote

def autocomplete(self, category):
    '''
    If possible, autocomplete a word according to it's category.
    '''
    root = ''.join(self.chars).split()[-1]  #The bit after the last space
share|improve this answer
1  
I used (see source of linked answer) <!-- language: python -->... didn't realised python was instead lang-py... –  user138932 Aug 5 '11 at 19:07
    
@mac that would use the rule in the python tag which is "default" because python is a webby language so posts with that tend to have html, css, etc. –  Jeff Atwood Aug 6 '11 at 0:23
add comment

You must log in to answer this question.