helvede.net is one of the many independent Mastodon servers you can use to participate in the fediverse.
Velkommen til Helvede, fediversets hotteste instance! Vi er en queerfeministisk server, der shitposter i den 9. cirkel. Welcome to Hell, We’re a DK-based queerfeminist server. Read our server rules!

Server stats:

161
active users

#html

16 posts15 participants0 posts today

🆕 blog! “Introducing Pretty Print HTML for PHP 8.4”

I'm delight to announce the first release of my opinionated HTML Pretty Printer for new versions of PHP.

Grab the code from Packagist
Contribute on GitLab

There are several prettifiers on Packagist, but I think mine is the only one which works with the new Dom\HTMLDocument class.

Table of Contents

What

This takes…

👀 Read more: shkspr.mobi/blog/2025/04/intro

#HTML #php

The HTML5 Logo.
Terence Eden’s Blog · Introducing Pretty Print HTML for PHP 8.4
More from Terence Eden

My April IndieWeb blog carnival entry on “renewal”!

I often feel compelled to tweak and redesign my website at the expense of other things I value. I talk about reconnecting with what I most enjoy about composing and coding, and avoiding treating my leisure and projects as if I need to impress someone.

reillyspitzfaden.com/posts/202

Pixel art of a radio tower and floppy disk, with pixel art text reading 'Reilly Spitzfaden'
reillyspitzfaden.comIndieWeb Blog Carnival — “Renewal”

I’m fortunate to have worked with a lot of amazing designers over the years. Some were curious about designing in the browser with basic #HTML and #CSS, but weren’t sure where to begin, or felt discouraged by a lot of developer-centric content.

This is the advice I gave that seemed to resonate most: cloudfour.com/thinks/designing

The author smiles warmly next to five floating icons representing concepts from this article
Cloud Four · Designing in the Browser: Five Tips for Beginners
More from Tyler Sticka
Continued thread

Yet more HTML brainteasers for you to argue over!

How do you feel about newlines in attribute values?

For example:
`<img alt="A kitten.
A puppy.">`

Or:
`<div class="cat
dog
horse">`

Is there ever a time when a newline *must not* be replaced by a space?

Continued thread

OK! I am now *moderately* confident that my #HTML Pretty Printer works. So I'm looking for feedback 🙂

Here's how you can help:

1. Visit shkspr.mobi/blog/random and view the source. Let me know if it looks weird please!
2. Contribute test cases either at gitlab.com/edent/pretty-print- or by sending me some complicated HTML.
3. Tell me how useful you think this is.

THANKS GANG!

Terence Eden’s Blog · Minimum Viable Clustered-Marker Globe using OpenFreeMap and MapLibre GL
More from Terence Eden

New Kitten release

• Fix: messages that are promises are properly awaited before being sent.

kitten.small-web.org

Kitten automatically and transparently handles asynchronous content in your templates for you so you don’t have to worry about it. One place where this wasn’t working properly is if you addressed `this.component` to stream a custom update of your component manually instead of calling the `this.update()` method of Kitten component instances.

e.g.,

```js
export default class AdminPage extends kitten.Page {
// …
onSelectedPost (data) {
this.send(kitten.html`<${this.component} postId='${data.selectedPost.postId}' />`)
}
}
```

:kitten:💕