![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I'm building a site using Mambo CSM, which is PHP and MySQL generated pages. When viewing the pages' source in a browser, I'm about to be sick. The code is scattered all over the place and it's virtually impossible (or at least time consuming) to search for certain snippets, etc. Some of the pages are actually the worse I have seen... Someone (Thierry?) was fiddling with some script, and I tried an online gadget that removed spaces a couple of months ago (which, regretfully, also nuked some legitimate stuff), but I wonder: 1. Are there any WORKING gadget available to clean up the code? 2. Since most pages are dynamic, is it even possible? TIA |
#3
| |||
| |||
|
|
Did you try - Commands >> Apply Source Formatting ? Mick |
#4
| |||
| |||
|
|
2. Since most pages are dynamic, is it even possible? |
#5
| |||
| |||
|
|
Bingo! The problem that causes the ugly formatting is in the script that writes the code. Your cleanup would have to be done there. |
#6
| |||
| |||
|
|
I'm building a site using Mambo CSM, which is PHP and MySQL generated pages. When viewing the pages' source in a browser, I'm about to be sick. The code is scattered all over the place and it's virtually impossible (or at least time consuming) to search for certain snippets, etc. Some of the pages are actually the worse I have seen... Someone (Thierry?) was fiddling with some script, and I tried an online gadget that removed spaces a couple of months ago (which, regretfully, also nuked some legitimate stuff), but I wonder: 1. Are there any WORKING gadget available to clean up the code? 2. Since most pages are dynamic, is it even possible? TIA |
#7
| |||
| |||
|
|
OK, I'll take a shot at it. *With* backups.... (BTW: The sample newsfeed you have at your site isn't working) Thanks. |
#8
| |||
| |||
|
|
dynamically generated code can be incredibly messy unless you take the time to make sure the script outputs nicely formatted text. |
#9
| |||
| |||
|
|
Hmmm ... You mean this one? http://apptools.com/phptools/xml/rssclient.php It seems to be working for me. |
#10
| |||
| |||
|
|
Joe {RoastHorse} wrote: dynamically generated code can be incredibly messy unless you take the time to make sure the script outputs nicely formatted text. Yeah, I've noticed. :-\ But how do I do that? Is it to open every file and reformat the code? But if so, I don't understand how that eventually will affect the pages? |
![]() |
| Thread Tools | |
| Display Modes | |
| |