nojanath / SublimeKSP

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

Added f-string support! #460

Closed mkruselj closed 3 months ago

mkruselj commented 3 months 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>.'