I tried to use the Insert -> Code functionality, to enter this C code.
For some reason, the Code editor window does not want to close. It does accept random other C code.
I set the type to C.
uint8_t getSTB() {
return (uint8_t) SCPI_RegGet(&scpi_context, SCPI_REG_STB);
}
void setSTB(uint8_t stb) {
SCPI_RegSet(&scpi_context, SCPI_REG_STB, (scpi_reg_val_t) stb);
}
edit: to be sure that there are no hidden characters, I saved the code to an ANSI txt file and retried.
It makes no difference.