Stop Auto correct for syntax in App Studio


#1

Hi,

I am using this phonegap build plugin cordova-plugin-document-viewer

I can’t use the print function for the above plugin because NSBasic App Studio keeps automatically changing the word from“print” to “Print” in my code. (changes the p to a captial P, thus stops the plugin print function from working)

As NSBasic keeps changing the word “print” to a capital letter it stops the print option from working.

Is there a way to stop NSBasic from automatically changing the “p” letter of the word print to a capital letter ?

Many thanks

Gary.


#2

The easiest solution is to enclose the code (it can be as little as one statement) with

JavaScript
  document.print(...)
End JavaScript

If you select some code in the Code Window and right click, “View JavaScript” will show you the translation.


#3

Thank you, that worked a treat.

Many thanks.