One benefit to working as part of a development team is that you can ask your fellow developers to look at your code and ask for help. Sending code back and forth over email can be frustrating and even counter-productive. IMO, the ideal way to share code is by simply sending a URL and letting the other developer view it in their browser with syntax highlighting.
Here’s one way that does not require any external libraries and is very easy to setup:
###Add this line to .htaccess
This rule sends all requests for files ending in .phps to the viewsource.php file with the path as an argument.
###Put the below script in the document root of your development server
Now when you visit a link like: http://localhost/info.phps it will show the source of the file.
_Note: This script should never be used in production!_