Page 1 of 1
Wipe out commenting from client scripts
Posted: Thu Dec 27, 2018 7:29 am
by sangnandar
For the sake of documentation we do a lot of commenting both on server scripts and client scripts. Commenting on php scripts is no problem because it's not exposed to end-user. But client scripts.., the comments exposed to end-user.
It would be nice to have client scripts comments wiped out during file generation. Would also nice if server scripts comments wiped out too and leave all comments just inside *.pmp files.
Re: Wipe out commenting from client scripts
Posted: Wed Jan 09, 2019 12:17 am
by Adam
I second this idea!
1) remove PHP comments from generated PHP files
2) remove JS comments from generated PHP files
3) remove comments from JS files
4) compress (remove whitespace) JS within PHP files
Option #1 thru #3 should be selectable (possibly one option for PHP comments and another for JS comments as commented code is useful during development)
Option #4 should be based on the existing "compress JS" advanced setting
Additional thought: an option to compress (remove whitespace) from generated PHP files
Re: Wipe out commenting from client scripts
Posted: Tue Apr 09, 2019 1:38 am
by bkay
Re: Wipe out commenting from client scripts
Posted: Fri Apr 12, 2019 12:24 pm
by ross_t
+1 on this from me as well.
Re: Wipe out commenting from client scripts
Posted: Wed May 29, 2019 4:23 pm
by andyrav
Re: Wipe out commenting from client scripts
Posted: Wed Aug 07, 2019 9:25 am
by Webmaster
PHPMaker 2020 can compress Client Scripts and Startup Scripts. If compressed, the comments are removed.