a possible syntax highlighting bug when posting python code ?

  • Author
  • #1485621


    hi, the post is

    see the code port line 78 -82 for example, it seems when it sees this

    nspace = args.ns.strip(‘”‘)

    it thinks ” means start a new string, but it’s actually in tow single quotes, which leads to incorrect syntax highlighting,

    is this a bug ?

    The blog I need help with is ilmvfx.wordpress.com.


    I don\’t know but Staff will so I’ll tag this thread for their assistance. Please subscribe to the thread so you are notified when they respond and please be patient while waiting.



    Hi there,

    It looks like the syntax highlighter is getting confused by the double quotation mark. You can avoid this by escaping the double quotation mark as follows:

    nspace = args.ns.strip('\"')

    Our syntax highlighter is based on Alex Gorbatchev’s SyntaxHighlighter. If you think this is a bug in the highlighter that should be corrected, I recommend reporting it at that link so it can be fixed in SyntaxHighlighter for everyone who uses it. :)

    Please let me know if you have any questions about that!

The topic ‘a possible syntax highlighting bug when posting python code ?’ is closed to new replies.