Python 3.6 f-string variable highlighting
-
Hello,
I’m trying to find out if it is possible to highlight variables in Python f-strings that were introduced in 3.6
ageBob = 10
ageRob = 20
print ( f’'‘Age of Bob is: {ageBob}
Age of Rob is: {ageRob}
‘’’)So entire string inside the triple quotes will be highlighted as a string but {ageBob} and {ageRob} are actually variables that will be substituted. Is there any way to make them being highlighted differently?
Thank You!
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login