Change the font size of the JavaScript Editing Window?

submo's icon

Hello,

I'm trying to change the font size of the JavaScript text editing window as its a bit small for my eyes.

Unfortunately I've had no luck.

I've tried sending the "editfontsize $1" message to the [js] object with various int values, but it seems to have no effect. Also tried adding the global "editfontsize=24" to my .js script but that doesn't seem to work either.

If I try to print "editfontsize" to the Max console it reports as -1?

What am I missing?

I'm using Windows with Max9.1.1 (its also the same using Max8)

TIA

TFL's icon

Seems like editfontsize is indeed broken for [js], and doesn't even exist for [v8]. It's worth letting the developers team know about that by submitting a ticket.

Alternatively, I would highly suggest to configure an External Text Editor (such as Notepad++, VSCode, Zed, etc.) in the Max preferences (under the Text Editing section in Max 9 prefs) so that your code would open in that app instead of the barebone builtin Max editor. This way you can make your text to be displayed anyway you like.

Another option is to use the Global Zoom Factor, (available only in Max 9, in Max Preferences, under Interface), although this will make everything bigger, not only the builtin editor.