Apart from \n what all escape characters does MIT app support?

At present, \n, \r, and \t are supported in the code generator (see Blockly.Yail.quotifyForREPL). However, depending on the context in App Inventor, some of those escapes are supported and some are not. Most design components understand \n (although sometimes the behavior differs slightly between the designer and app) but for \r and \t those are only available in the blocks editor. \r is mostly only useful for folks interacting with Windows systems where the line ending is \r\n (Android is Linux and iOS is Unix-y in nature, so both use \n for line endings). In general, we may want to support Unicode escape sequences with \u and then provide some of the others as syntactic sugar. Although outside of the work we are doing with IoT and microcontrollers I think they'll have somewhat limited applicability.

4 Likes