Community
    • Login

    Python 3.6 f-string variable highlighting

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    1 Posts 1 Posters 1.0k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Pavel NovozhilovP
      Pavel Novozhilov
      last edited by

      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!

      1 Reply Last reply Reply Quote 0
      • First post
        Last post
      The Community of users of the Notepad++ text editor.
      Powered by NodeBB | Contributors