Write your Snippets outside of MODx.
As of 2.2.0, you can simply add a "static" Snippet: just reference the static file.
Pre 2.2.0, it's still pretty easy to do - just create an 'include' snippet, but make its content be this:
if (file_exists($file)) { $o = include $file; } else { $o = 'File not found at: '.$file; } return $o;
You can use the include snippet on a page like such:
[[!include? &file=`/absolute/path/to/my/snippet.php`]]
And run your Snippets externally while you develop them!
Then you can test them to make sure they work (e.g. on the bash command line, you can use the command php -l my_script.php to check the script for syntax errors). Depending on your environment, you may also get some useful error messages to help you with debugging. Copy and paste the code into MODx only when you're sure it's working.
Remember that a snippet in a file on your web site can be executed by anyone with a web browser, so don't leave them there on a live site unless you've placed the snippet code outside the web root so the file can't be accessed via the web. In MODx Revolution, you can put the snippet files under the core directory and move the entire directory outside the web root. You can also put a test in the snippet that makes it exit if it's not running inside MODx, but it's safest just to move the file or paste the code into a snippet in the Manager and delete the file.
Is there any way how to get a full static html source of specific documents? Some API or plugin?