Forum Moderators: coopster
########################
# stuff here #
# more stuff here #
# Even more stuff here #
########################
(this forum destroys the whitespace....all the pound signs on the right have to align)
Is there any PHP/Perl/whatever script or something that will let me edit these easier than hitting space or tab billions of times, especially when changes need to get made?
A php script that's not currently being executed is just a file like any other, though. You could easily write a script to fopen() other scripts and format the comment block. T'were me I'd do a form with a text area for the comments and echo the first part of the script just for reference below it. I'd type in the straight text that I wanted and my script would word-wrap at an arbitrary length and add the pound signs.
You could probably knock out a script like that in half an hour unless, like me, you get hung up on making the stupid thing look pretty ;) .