| |

Testing Code Blocks with Ulysses

Last updated: May 18, 2022

Over on Twitter, Tom McFarlin asked me if Ulysses supports code syntax when pushing to WordPress:

https://twitter.com/tommcfarlin/status/1526909277352480769

So I decided to give it a test:

<?php 
	if ( $support ) {
		echo 'Hello There!';
	} else {
		echo 'That\'s a no, Red Rider.';
	}
?>

Looks good! And here’s what it looks like in Ulysses:

Similar Posts

  • My Favorites of 2025

    Last updated: December 27, 2025Longtime readers (or anyone who scrolls the archive) will be puzzled by this statement: It’s time for the 18th installment of my favorites of the year. But I just counted, and it’s true. And like last year, I’m going to start by looking back at what I wrote 10 years ago:…

  • | |

    Trade Secrets to Help Build Something Wonderful in 2017

    I imagine building product is like building anything else. Let’s take a recipe for lasagna. Sure there’s a basic set of instructions you should follow, but everyone probably does it a little differently. Everyone has their own method for layering the pasta, or what sauce to use. When it comes to building products, the same thing…

  • |

    Validate an Idea With an Email Form

    Last updated: June 7, 2022If you’re anything like me, you get super excited about an idea and want to build it right away. But I’m here to tell you that’s not the best way to spend your precious time. Spend some time validating an idea so you don’t waste time executing a bad one. I…

  • The 2000’s Rock Style

    Note: This article was published while I was in my early 20s. I was much younger and dumber. Please don’t hold it against me. One of the perils of having a 20+ year old website! The other day I was thinking about this: What band shaped music this decade the same way Nirvana did for…

  • |

    What to do When Your Credit Card Info is Stolen

    Recently I woke up to an alarming email, possibly from my credit card company, saying there were several unauthorized attempts to use my credit card on various websites. As a general rule I don’t click on links from emails when I’m not 100% sure about them (and maybe I was a little in denial) so…