Forum Archive

Snippet-Generated Quotes Don’t Produce Strings!

doTPurge

Create this snippet for creating a printed string:
pps (print(“”))
print(“<|>”)

The snippet will be inserted with the cursor inbetween the quotes as it should, but the resultant text being typed will NOT be a string; the color will not change, and words like IS or ELSE will change to their respective functional colors.

JonB

you will want to turn off smart punctuation when workng in pythonista! look carefully, you are using

“ ” instead of " "

the former is nor valid python

doTPurge

Thnx!! :-D