I can’t see api doc for new CODE_BLOCK in figjam : I tried to access code with .text.characters but doesn’t seem to work ? also how to get the language ?
Page 1 / 1
Hi @lepdev, you can get the code and programming language this way:
// Get code
figma.currentPage.selection[0].code
// Get programming language
figma.currentPage.selection[0].codeLanguage
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.