Here at Automattic we’re allllll about sharing source code. We’re easy, we give it away.
Tragically, though, using WordPress.com it is really, really hard to post source code. You have to know about HTML encoding, pre and code tags, and if you want any slick highlighting you have to convert it before you post it. You have to jump through all sorts of hoops.
Isn’t this much cooler?
$features = file_get_contents( 'https://wordpress.com/features/' ); preg_match_all( '|<h3>(.*?)</h3>|is', $features, $why_wp_rocks ); foreach ( $why_wp_rocks[1] as $slick_feature ) $hotness[] = $slick_feature; var_dump( $hotness );
If you want to know how to drop that science check out this FAQ entry, it’s as easy as a blog post on a Sunday. Like , we realize this feature will probably not appeal to many people, but if you’re the type that writes about programming your blogging life should be easier now.
Here’s another editing tip: if you press Shift + Enter it gives you a single line break instead of a double one.
Happy Labor Day!
cool
Kick butt feature!
I know your guys try every possible ways to improve WP for this community. Many thanks for every improvements you have made.
This is cool and I sure that this will appeal to many users.
Thats insanely interesting.
I tried… It’s work. Very usefull. Thanks!
COOL!! I love this. Thanks a lot, man.
Great. I dont get it 😐
wow, thanks a lot. this is exactly what I’ve been looking for.
been in trouble adding my coding tips back then (and got messed up with pre and code tags).
also thanks for the Shift + Enter tips. 😉
Cool 😀
cool lol
Thanx Matt, thats cool man. . .
shift + enter , mean a lot to me 😀
This sounds interesting, I’m gonna give it a try.
Thanks for the “Shift + Enter” Tip!!!!
Very, very cool. Thanks!
aww… this might be damn useful… tx a lot
thanks was looking for this for my new post 🙂
be nice when you get round to slashes (probably a criticism on xhtml and stripslashes).
How about an “Updated” entry widget? Also STICKIES!!!!
Thank you again. Go ahead!