Apple has posted the source for TextEdit, which used to be available as part of the Xcode installer (via Zach Drayer). I miss the days when you could do a local search of all the sample code and documentation. Now, everything is scattered online, where it’s harder to search and subject to removal.
Copy and paste this URL into your WordPress site to embed
Copy and paste this code into your site to embed