s = 5 // 2
if s == 2:
print(s)
As you can see the highlighting system treats Python's floor division operator //
as the beginning of a comment. But //
is not a comment in Python. Is there any solution? Is it a bug?
Was your question correctly tagged python ?
We use Google code prettify, and default inference on python because it is a webby language and code blocks tend to be mixed with javascript blocks, html blocks, etcetera.
We're working on an explicit override in cases where this isn't specific enough.
python
when I noticed it. You should really think about explicit override as Python3 is becoming more and more popular.
Commented
Mar 6, 2011 at 20:10
pre
s is "lang-cs prettyprint", not "default prettyprint". Same for ruby, java and perl.
python
tagged.