Python 3.6 supports F strings, eg:


print(f'Test {} me!'.format(2 + 2))

Can be written as:

print(f'Test {2 + 2} me!')

Which print's Test 4 me, Is there a way to adjust emacs syntax highlighting so the text between the {...} shows using regular code syntax-highlighting (instead of the same highlighting as a string).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.