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!


Log in to reply