aeric Expert Licensed User Longtime User May 26, 2025 #1 I use Smart String Literals to generate JavaScript in my web API server app. Many times the IDE will automatically converted the keyword like "if" to "If" and this will cause the JavaScript to break because "If" is not recognize as a correct keyword. (stupid JS) Maybe this is not easy to fix but I need to be careful all the times.
I use Smart String Literals to generate JavaScript in my web API server app. Many times the IDE will automatically converted the keyword like "if" to "If" and this will cause the JavaScript to break because "If" is not recognize as a correct keyword. (stupid JS) Maybe this is not easy to fix but I need to be careful all the times.
stevel05 Expert Licensed User Longtime User May 26, 2025 #2 Have a look here: https://www.b4x.com/android/forum/threads/ignore-formatting-block.140023/#content
aeric Expert Licensed User Longtime User May 26, 2025 #3 stevel05 said: Have a look here: https://www.b4x.com/android/forum/threads/ignore-formatting-block.140023/#content Click to expand... I mean whilst editing the code, the IDE Auto Format the code inside String Literals. Maybe it happens when I am modifying this ${ }. I may say it is expected but just need to be careful that it can happens without me noticing.
stevel05 said: Have a look here: https://www.b4x.com/android/forum/threads/ignore-formatting-block.140023/#content Click to expand... I mean whilst editing the code, the IDE Auto Format the code inside String Literals. Maybe it happens when I am modifying this ${ }. I may say it is expected but just need to be careful that it can happens without me noticing.
stevel05 Expert Licensed User Longtime User May 26, 2025 #4 Yes, enclose the code in an #If RUNTIME block and it will not break the formatting. #If RUNTIME 'write code here #end if
Yes, enclose the code in an #If RUNTIME block and it will not break the formatting. #If RUNTIME 'write code here #end if
aeric Expert Licensed User Longtime User May 26, 2025 #5 I think my problem is I like to use right click, Auto Format (Alt + F).