nojanath / SublimeKSP

Fork of Nils Liberg's SublimeKSP plugin. See README for details.
GNU General Public License v3.0
87 stars 18 forks source link

Added f-string support! #460

Closed mkruselj closed 1 month ago

mkruselj commented 1 month ago

F-strings (formatted strings) can inject arbitrary code expressions into strings without pesky manual terminations and concatenations. To start an f-string, simply place an f in front of a single-quoted string:

f'Hello!'

To inject code, use <> tags to enclose your expression:

f'The value of variable a is: <a>.'