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.
Wipe out commenting from client scripts
-
- User
- Posts: 980
Wipe out commenting from client scripts
-
- User
- Posts: 480
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